Sha256: 8a9a608eb799f811899b8e884fd7bb9b0c6449a2b7a1ce5e3517f11a191e98a4
Contents?: true
Size: 346 Bytes
Versions: 4
Compression:
Stored size: 346 Bytes
Contents
module ShopVariants module Models module Product def self.included(base) base.class_eval do has_many :variants, :class_name => 'ShopProductVariant', :foreign_key => :product_id, :dependent => :destroy accepts_nested_attributes_for :variants end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems