Class: Spina::Shop::Discounts::Rules::OrderTotal
- Inherits:
-
Spina::Shop::DiscountRule
- Object
- ActiveRecord::Base
- ApplicationRecord
- Spina::Shop::DiscountRule
- Spina::Shop::Discounts::Rules::OrderTotal
- Defined in:
- app/models/spina/shop/discounts/rules/order_total.rb
Instance Method Summary collapse
Instance Method Details
#eligible?(order_item) ⇒ Boolean
9 10 11 12 |
# File 'app/models/spina/shop/discounts/rules/order_total.rb', line 9 def eligible?(order_item) # order_item.order.order_total >= total true end |