Module: Taggable::InstanceMethods
- Defined in:
- lib/taggable.rb
Instance Method Summary collapse
Instance Method Details
#tag_list ⇒ Object
3 4 5 |
# File 'lib/taggable.rb', line 3 def tag_list .collect(&:name).join(",") end |
#tag_list=(tag_str) ⇒ Object
7 8 9 10 |
# File 'lib/taggable.rb', line 7 def tag_list=(tag_str) self. = [] (tag_str).collect {|n| self. << Tag.find_or_create_by_name(n)} end |