Module: SpreeCmCommissioner::ClassificationDecorator

Defined in:
app/models/spree_cm_commissioner/classification_decorator.rb

Class Method Summary collapse

Class Method Details

.prepended(base) ⇒ Object



3
4
5
6
# File 'app/models/spree_cm_commissioner/classification_decorator.rb', line 3

def self.prepended(base)
  base.has_many :line_items, through: :product
  base.has_many :complete_line_items, -> { complete }, through: :product
end