Module: Spree::SpreeVariantDecorator
- Defined in:
- app/decorators/models/spree/spree_variant_decorator.rb
Class Method Summary collapse
Class Method Details
.prepended(base) ⇒ Object
5 6 7 8 |
# File 'app/decorators/models/spree/spree_variant_decorator.rb', line 5 def self.prepended(base) base.include AlchemySolidus::TouchAlchemyIngredients base.has_many :alchemy_ingredients, class_name: "Alchemy::Ingredients::SpreeVariant", as: :related_object, dependent: :nullify end |