Class: Alchemy::EssenceElementTeaser
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Alchemy::EssenceElementTeaser
- Defined in:
- app/models/alchemy/essence_element_teaser.rb
Instance Method Summary collapse
-
#save_ingredient(params, options = {}) ⇒ Object
Saves the content from params.
Instance Method Details
#save_ingredient(params, options = {}) ⇒ Object
Saves the content from params
10 11 12 13 14 15 16 |
# File 'app/models/alchemy/essence_element_teaser.rb', line 10 def save_ingredient(params, = {}) return true if params.blank? self.url = params["url"] self.title = params["title"] self.text = params["text"] self.save! end |