Module: Outrigger::Taggable::ClassMethods

Defined in:
lib/outrigger/taggable.rb

Instance Method Summary collapse

Instance Method Details

#tag(*new_tags) ⇒ Object



12
13
14
# File 'lib/outrigger/taggable.rb', line 12

def tag(*new_tags)
  @tags = tags.concat(new_tags).uniq
end

#tagsObject



16
17
18
# File 'lib/outrigger/taggable.rb', line 16

def tags
  @tags ||= []
end