Class: Spree::PromotionRule
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Spree::PromotionRule
- Defined in:
- app/models/spree/promotion_rule.rb
Direct Known Subclasses
Spree::Promotion::Rules::FirstOrder, Spree::Promotion::Rules::ItemTotal, Spree::Promotion::Rules::Product, Spree::Promotion::Rules::User, Spree::Promotion::Rules::UserLoggedIn
Instance Method Summary collapse
Instance Method Details
#eligible?(order, options = {}) ⇒ Boolean
13 14 15 |
# File 'app/models/spree/promotion_rule.rb', line 13 def eligible?(order, = {}) raise 'eligible? should be implemented in a sub-class of Promotion::PromotionRule' end |