Class: Alchemy::EssenceElementTeaser

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/alchemy/essence_element_teaser.rb

Instance Method Summary collapse

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, options = {})
  return true if params.blank?
  self.url = params["url"]
  self.title = params["title"]
  self.text = params["text"]
  self.save!
end