Module: Spree::SpreeTaxonDecorator

Defined in:
app/decorators/models/spree/spree_taxon_decorator.rb

Class Method Summary collapse

Class Method Details

.prepended(base) ⇒ Object



5
6
7
8
# File 'app/decorators/models/spree/spree_taxon_decorator.rb', line 5

def self.prepended(base)
  base.include AlchemySolidus::TouchAlchemyIngredients
  base.has_many :alchemy_ingredients, class_name: "Alchemy::Ingredients::SpreeTaxon", as: :related_object, dependent: :nullify
end