Module: Mongoid::Document::Taggable::InstanceMethods
- Defined in:
- lib/mongoid-simple-tags.rb
Instance Method Summary collapse
Instance Method Details
#tag_list ⇒ Object
20 21 22 |
# File 'lib/mongoid-simple-tags.rb', line 20 def tag_list self..join(", ") if end |
#tag_list=(tags) ⇒ Object
16 17 18 |
# File 'lib/mongoid-simple-tags.rb', line 16 def tag_list=() self. = .to_s.split(",").collect{ |t| t.strip }.delete_if{ |t| t.blank? } end |
#tags ⇒ Object
24 25 26 |
# File 'lib/mongoid-simple-tags.rb', line 24 def super || [] end |