test/dummy/app/models/adminpanel/photo.rb in adminpanel-2.2.5 vs test/dummy/app/models/adminpanel/photo.rb in adminpanel-2.3.0
- old
+ new
@@ -1,9 +1,10 @@
module Adminpanel
class Photo < ActiveRecord::Base
include Adminpanel::Base
# include Adminpanel::Galleryzation
mount_uploader :file, PhotoUploader
+ belongs_to :product
def self.relation_method
'product_id'
end