module Piggybak::ActsAsSellableWithSimpleVariants::ClassMethods
Public Instance Methods
acts_as_sellable_with_simple_variants()
click to toggle source
# File lib/acts_as_sellable_with_simple_variants.rb, line 6 def acts_as_sellable_with_simple_variants has_many :piggybak_sellable, :as => "item", :class_name => "::Piggybak::Sellable", :inverse_of => :item accepts_nested_attributes_for :piggybak_sellable, :allow_destroy => true end