Module: Spree::LineItemDecorator

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

Class Method Summary collapse

Class Method Details

.prepended(base) ⇒ Object



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

def self.prepended(base)
  base.class_eval do
    delegate :catalog_mode, to: :product
    validates :catalog_mode, inclusion: { in: [false], message: :should_be_false }
  end
end