Module: Spree::OrderDecorator

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

Instance Method Summary collapse

Instance Method Details

#checkout_allowed?Boolean

Returns:

  • (Boolean)


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

def checkout_allowed?
  super && !store.catalog_mode? && line_items.none? { |l| l.variant.product.catalog_mode? }
end