Module: Library::TaggedAsset::InstanceMethods

Defined in:
lib/library/tagged_asset.rb

Instance Method Summary collapse

Instance Method Details

#keywordsObject

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.attached_tags.map {|t| t.title}.join(', ')
end

#keywords=(somewords = "") ⇒ Object



32
33
34
# File 'lib/library/tagged_asset.rb', line 32

def keywords=(somewords="")
  self.attached_tags = Tag.from_list(somewords)
end

#keywords_before_type_castObject

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