Class: Spree::PromotionRule

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/spree/promotion_rule.rb

Instance Method Summary collapse

Instance Method Details

#eligible?(order, options = {}) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'app/models/spree/promotion_rule.rb', line 13

def eligible?(order, options = {})
  raise 'eligible? should be implemented in a sub-class of Promotion::PromotionRule'
end