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

Version Path
alchemy_cms-2.0.7 app/models/essence_video.rb
alchemy_cms-2.0.6.1 app/models/essence_video.rb
alchemy_cms-2.0.5 app/models/essence_video.rb
alchemy_cms-2.0.4 app/models/essence_video.rb
alchemy_cms-2.0.3.1 app/models/essence_video.rb
alchemy_cms-2.1.beta1 app/models/essence_video.rb
alchemy_cms-2.0.3 app/models/essence_video.rb
alchemy_cms-2.0.2 app/models/essence_video.rb
alchemy_cms-2.0.1 app/models/essence_video.rb
alchemy_cms-2.0 app/models/essence_video.rb
alchemy_cms-2.0.rc6 app/models/essence_video.rb
alchemy_cms-2.0.rc5 app/models/essence_video.rb
alchemy_cms-2.0.rc4 app/models/essence_video.rb
alchemy_cms-2.0.rc3 app/models/essence_video.rb
alchemy_cms-2.0.rc2 app/models/essence_video.rb
alchemy_cms-2.0.rc1 app/models/essence_video.rb
alchemy_cms-2.0.pre5 app/models/essence_video.rb
alchemy_cms-2.0.pre4 app/models/essence_video.rb
alchemy_cms-2.0.pre3 app/models/essence_video.rb
alchemy_cms-2.0.pre2 app/models/essence_video.rb