diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-08 04:58:13 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-08 04:58:13 +0000 |
commit | 30e3e7e0b4b2b0ad400efd7947c909341a5948a0 (patch) | |
tree | f3d40b186524df7e4452a4eef3e9b90e4daf8435 /app/models/member.rb | |
parent | 5b77bd0076e8fd3cebfc99c0ab2fdfd388169dae (diff) | |
download | redmine-30e3e7e0b4b2b0ad400efd7947c909341a5948a0.tar.gz redmine-30e3e7e0b4b2b0ad400efd7947c909341a5948a0.zip |
Rails4: replace deprecated Relation#update_all at Member model
git-svn-id: http://svn.redmine.org/redmine/trunk@12512 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/member.rb')
-rw-r--r-- | app/models/member.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/member.rb b/app/models/member.rb index b11086061..40010379a 100644 --- a/app/models/member.rb +++ b/app/models/member.rb @@ -84,7 +84,8 @@ class Member < ActiveRecord::Base def set_issue_category_nil if user # remove category based auto assignments for this member - IssueCategory.update_all "assigned_to_id = NULL", ["project_id = ? AND assigned_to_id = ?", project.id, user.id] + IssueCategory.where(["project_id = ? AND assigned_to_id = ?", project.id, user.id]). + update_all("assigned_to_id = NULL") end end |