Sha256: afc67e92eafb9559286bc44e4454c591c1193ecaffa08bfae83c52807b8175ed
Contents?: true
Size: 329 Bytes
Versions: 17
Compression:
Stored size: 329 Bytes
Contents
module Shop module Models module Image def self.included(base) base.class_eval do has_many :shop_product_attachments, :dependent => :destroy has_many :shop_products, :through => :shop_product_attachments, :source => :product end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems