From 14fa4dc6836976e8595ca24b2e8a07993f22573d Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 7 Jan 2014 12:33:43 +0000 Subject: [PATCH] Rails4: replace deprecated Relation#update_all at IssuePriority model git-svn-id: http://svn.redmine.org/redmine/trunk@12489 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/issue_priority.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/issue_priority.rb b/app/models/issue_priority.rb index fa5a29c8a..d07baa6b6 100644 --- a/app/models/issue_priority.rb +++ b/app/models/issue_priority.rb @@ -61,7 +61,7 @@ class IssuePriority < Enumeration index == (priorities.size - 1) ? "highest" : "high#{priorities.size - index}" end - update_all({:position_name => name}, :id => priority.id) + where(:id => priority.id).update_all({:position_name => name}) end end end