Sha256: 575b737a1a26449a619324d3c8081489eadcc490c64926343e721c68ca65ff64

Contents?: true

Size: 551 Bytes

Versions: 3

Compression:

Stored size: 551 Bytes

Contents

module Gluttonberg
  class GalleryImage < ActiveRecord::Base
    self.table_name = "gb_gallery_images"

    belongs_to :gallery
    belongs_to :asset  , :class_name => "Gluttonberg::Asset" , :foreign_key => "asset_id"

    is_drag_tree :scope => :gallery_id , :flat => true , :order => "position"

    attr_accessible :asset_id, :position, :caption, :credits, :link, :gallery_id
    validates :asset_id, presence: true
    
    # Included mixins which are registered by host app for extending functionality
    MixinManager.load_mixins(self)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gluttonberg-core-3.0.2 app/models/gluttonberg/gallery_image.rb
gluttonberg-core-3.0.1 app/models/gluttonberg/gallery_image.rb
gluttonberg-core-3.0.0 app/models/gluttonberg/gallery_image.rb