Sha256: bf78b53c8665b68a5724d1f7ae8e54e041edc1ae0905db6f16526b0601ff6945
Contents?: true
Size: 341 Bytes
Versions: 3
Compression:
Stored size: 341 Bytes
Contents
class EssenceFile < 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"].to_s self.save end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alchemy_cms-2.0.7 | app/models/essence_file.rb |
alchemy_cms-2.0.6.1 | app/models/essence_file.rb |
alchemy_cms-2.0.5 | app/models/essence_file.rb |