Sha256: 6c84e628135acbeb99e98911b1a9d5bebf275c78bba66ff33d47647822b5df99
Contents?: true
Size: 585 Bytes
Versions: 2
Compression:
Stored size: 585 Bytes
Contents
module Tim class BaseImage < Tim::Base has_many :image_versions, :inverse_of => :base_image belongs_to :template, :inverse_of => :base_images belongs_to :user, :class_name => Tim.user_class accepts_nested_attributes_for :template accepts_nested_attributes_for :image_versions validates_presence_of :name validates_presence_of :template, :unless => :import attr_accessible :template, :name, :description, :import attr_accessible :template_attributes attr_accessible :image_versions_attributes, :as => :admin attr_protected :id end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tim-0.3.0 | app/models/tim/base_image.rb |
tim-0.2.0 | app/models/tim/base_image.rb |