Sha256: 1687f186111c1d60fae2d9bead0830fb1973029cb563787d7510792264a43c10

Contents?: true

Size: 256 Bytes

Versions: 8

Compression:

Stored size: 256 Bytes

Contents

module Adminpanel
  class Photo < ActiveRecord::Base
    include Adminpanel::Base
    # include Adminpanel::SortableGallery
    mount_uploader :file, PhotoUploader
    belongs_to :product

    def self.relation_method
      'product_id'
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
adminpanel-2.6.1 test/dummy/app/models/adminpanel/photo.rb
adminpanel-2.6.0 test/dummy/app/models/adminpanel/photo.rb
adminpanel-2.5.5 test/dummy/app/models/adminpanel/photo.rb
adminpanel-2.5.4 test/dummy/app/models/adminpanel/photo.rb
adminpanel-2.5.3 test/dummy/app/models/adminpanel/photo.rb
adminpanel-2.5.2 test/dummy/app/models/adminpanel/photo.rb
adminpanel-2.5.1 test/dummy/app/models/adminpanel/photo.rb
adminpanel-2.5.0 test/dummy/app/models/adminpanel/photo.rb