Module: Outrigger::Taggable::ClassMethods

Defined in:
lib/outrigger/taggable.rb

Instance Method Summary collapse

Instance Method Details

#tag(*new_tags) ⇒ Object



14
15
16
# File 'lib/outrigger/taggable.rb', line 14

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

#tagsObject



18
19
20
# File 'lib/outrigger/taggable.rb', line 18

def tags
  @tags ||= []
end