Permalink
Browse files

[promo] Specify table name for roles association in user decorator

  • Loading branch information...
1 parent 3145a45 commit 58f40cbef1ad5fcaabf65a160e38e666d552b889 @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
+ has_and_belongs_to_many :roles, :class_name => "Spree::Role", :foreign_key => :user_id, :join_table_name => "spree_roles_users"
end
end

0 comments on commit 58f40cb

Please sign in to comment.