Sha256: fa33c92a500609c6d40a615944667b1fae1ef5003fcca4e940ce9f01a25fddda

Contents?: true

Size: 209 Bytes

Versions: 9

Compression:

Stored size: 209 Bytes

Contents

module Spree
  class Promotion
    module Rules
      class UserLoggedIn < PromotionRule
        def eligible?(order, options = {})
          return order.user.present?
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree_core-2.1.12 app/models/spree/promotion/rules/user_logged_in.rb
spree_core-2.1.11 app/models/spree/promotion/rules/user_logged_in.rb
spree_core-2.1.10 app/models/spree/promotion/rules/user_logged_in.rb
spree_core-2.1.9 app/models/spree/promotion/rules/user_logged_in.rb
spree_core-2.1.8 app/models/spree/promotion/rules/user_logged_in.rb
spree_core-2.1.7 app/models/spree/promotion/rules/user_logged_in.rb
spree_core-2.1.6 app/models/spree/promotion/rules/user_logged_in.rb
spree_core-2.1.5 app/models/spree/promotion/rules/user_logged_in.rb
spree_core-2.1.4 app/models/spree/promotion/rules/user_logged_in.rb