Sha256: e0565bb67525761e02d1fc027468318bba2263fc378ceaaca9a4836323a638e6

Contents?: true

Size: 428 Bytes

Versions: 2

Compression:

Stored size: 428 Bytes

Contents

module Tim
  class ImageVersion < Tim::Base
    belongs_to :base_image, :inverse_of => :image_versions
    has_many :target_images, :inverse_of => :image_version

    accepts_nested_attributes_for :base_image
    accepts_nested_attributes_for :target_images

    validates_presence_of :base_image

    attr_accessible :base_image_attributes
    attr_accessible :target_images_versions_attributes
    attr_protected :id
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tim-0.3.0 app/models/tim/image_version.rb
tim-0.2.0 app/models/tim/image_version.rb