summaryrefslogtreecommitdiffstats
path: root/app/models/group.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-12-27 23:33:15 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-12-27 23:33:15 +0000
commite9470e55857afa61f8e780b0e946f63dd0b25f86 (patch)
treeef41d956a56a42228da8f5d5e4d4238edb9af0da /app/models/group.rb
parent24904b4a0330e6afde104d21f55d161ec16b0661 (diff)
downloadredmine-e9470e55857afa61f8e780b0e946f63dd0b25f86.tar.gz
redmine-e9470e55857afa61f8e780b0e946f63dd0b25f86.zip
explicitly define fix has_and_belongs_to_many join_table at Group and User
Rails4 cannot resolve automatically. git-svn-id: http://svn.redmine.org/redmine/trunk@12471 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/group.rb')
-rw-r--r--app/models/group.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/models/group.rb b/app/models/group.rb
index d1b2cb966..3e4bdf09a 100644
--- a/app/models/group.rb
+++ b/app/models/group.rb
@@ -18,8 +18,10 @@
class Group < Principal
include Redmine::SafeAttributes
- has_and_belongs_to_many :users, :after_add => :user_added,
- :after_remove => :user_removed
+ has_and_belongs_to_many :users,
+ :join_table => "#{table_name_prefix}groups_users#{table_name_suffix}",
+ :after_add => :user_added,
+ :after_remove => :user_removed
acts_as_customizable