diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-08 12:20:35 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-08 12:20:35 +0000 |
commit | 84f43584f94b4a9a04274c5d5e7d9557fa19620e (patch) | |
tree | 9e45df29363825c6908f6156715886b33e2ba2cf /app/models/issue_category.rb | |
parent | fb877ddcfbb429acf9eb97f9cb8d0ab0722b6f0f (diff) | |
download | redmine-84f43584f94b4a9a04274c5d5e7d9557fa19620e.tar.gz redmine-84f43584f94b4a9a04274c5d5e7d9557fa19620e.zip |
Rails4: replace deprecated Relation#update_all at IssueCategory model
git-svn-id: http://svn.redmine.org/redmine/trunk@12531 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_category.rb')
-rw-r--r-- | app/models/issue_category.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue_category.rb b/app/models/issue_category.rb index 6efec6a5d..10464e8e0 100644 --- a/app/models/issue_category.rb +++ b/app/models/issue_category.rb @@ -35,7 +35,7 @@ class IssueCategory < ActiveRecord::Base # If a category is specified, issues are reassigned to this category def destroy(reassign_to = nil) if reassign_to && reassign_to.is_a?(IssueCategory) && reassign_to.project == self.project - Issue.update_all({:category_id => reassign_to.id}, {:category_id => id}) + Issue.where({:category_id => id}).update_all({:category_id => reassign_to.id}) end destroy_without_reassign end |