Sha256: 01764c6fa1c09f3b7b2cd944ab8870a7b6c0ec568200ff976b73e75f6a27d43a
Contents?: true
Size: 354 Bytes
Versions: 2
Compression:
Stored size: 354 Bytes
Contents
module Spree class Promotion module Rules class ReferredPromotionRule < Spree::PromotionRule def eligible?(order, options = {}) return true if order.user and order.user.referred? false end def applicable?(promotable) promotable.is_a?(Spree::Order) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_reffiliate-2.4.1 | app/models/spree/promotion/rules/referred_promotion_rule.rb |
spree_reffiliate-2.3.1 | app/models/spree/promotion/rules/referred_promotion_rule.rb |