Skip to content
This repository
Browse code

Use Spree.user_class in Spree::Promotion::Rules::User

  • Loading branch information...
commit f07c26466645304a3b65dd630f575199baaa92ad 1 parent 9f466be
Ryan Bigg radar authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  promo/app/models/spree/promotion/rules/user.rb
2  promo/app/models/spree/promotion/rules/user.rb
@@ -5,7 +5,7 @@ class User < PromotionRule
5 5 attr_accessible :user_ids_string
6 6
7 7 belongs_to :user, :class_name => Spree.user_class.to_s
8   - has_and_belongs_to_many :users, :class_name => '::Spree::User', :join_table => 'spree_promotion_rules_users', :foreign_key => 'promotion_rule_id'
  8 + has_and_belongs_to_many :users, :class_name => Spree.user_class.to_s, :join_table => 'spree_promotion_rules_users', :foreign_key => 'promotion_rule_id'
9 9
10 10 def eligible?(order, options = {})
11 11 users.none? or users.include?(order.user)

0 comments on commit f07c264

Please sign in to comment.
Something went wrong with that request. Please try again.