Sha256: d99c1158f6e07ed19a466ff42662c35128827ff52aec186a4a1df78cbdf71605
Contents?: true
Size: 345 Bytes
Versions: 20
Compression:
Stored size: 345 Bytes
Contents
class EssenceVideo < ActiveRecord::Base acts_as_essence( :ingredient_column => :attachment, :preview_text_method => :name ) belongs_to :attachment # Saves the ingredient def save_ingredient(params, options = {}) return true if params.blank? self.attachment_id = params["attachment_id"].to_s self.save end end
Version data entries
20 entries across 20 versions & 1 rubygems