Module: Library::TaggedAsset::InstanceMethods
- Defined in:
- lib/library/tagged_asset.rb
Instance Method Summary collapse
-
#keywords ⇒ Object
just keeping compatibility with page tags so as to present the same interface.
- #keywords=(somewords = "") ⇒ Object
-
#keywords_before_type_cast ⇒ Object
called by form_helper.
Instance Method Details
#keywords ⇒ Object
just keeping compatibility with page tags so as to present the same interface
28 29 30 |
# File 'lib/library/tagged_asset.rb', line 28 def keywords self..map {|t| t.title}.join(', ') end |
#keywords=(somewords = "") ⇒ Object
32 33 34 |
# File 'lib/library/tagged_asset.rb', line 32 def keywords=(somewords="") self. = Tag.from_list(somewords) end |
#keywords_before_type_cast ⇒ Object
called by form_helper
36 37 38 |
# File 'lib/library/tagged_asset.rb', line 36 def keywords_before_type_cast # called by form_helper keywords end |