Permalink
Browse files

[promo] Use join_table, not join_table name in user decorator

  • Loading branch information...
1 parent 58f40cb commit 1093674691423f91bf1a379db0abd3a3f6ba16d4 @radar radar committed May 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 promo/app/models/spree/user_decorator.rb
@@ -1,5 +1,5 @@
if Spree.user_class
Spree.user_class.class_eval do
- has_and_belongs_to_many :roles, :class_name => "Spree::Role", :foreign_key => :user_id, :join_table_name => "spree_roles_users"
+ has_and_belongs_to_many :roles, :class_name => "Spree::Role", :foreign_key => :user_id, :join_table => "spree_roles_users"
end
end

0 comments on commit 1093674

Please sign in to comment.