Module: Tagger::ActiveRecord::InstanceMethods

Defined in:
lib/tagger/active_record.rb

Instance Method Summary collapse

Instance Method Details

#tagged_withObject



32
33
34
# File 'lib/tagger/active_record.rb', line 32

def tagged_with
  @tagged_with ||= joined_tags(tags.all.collect(&:name))
end

#tagged_with=(tags) ⇒ Object



28
29
30
# File 'lib/tagger/active_record.rb', line 28

def tagged_with=(tags)
  @tagged_with = joined_tags(parsed_tags(tags))
end