Rails4: replace deprecated Relation#update_all at IssuePriority model

git-svn-id: http://svn.redmine.org/redmine/trunk@12489 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-07 12:33:43 +00:00
parent 0bc3ef5014
commit 14fa4dc683
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class IssuePriority < Enumeration
index == (priorities.size - 1) ? "highest" : "high#{priorities.size - index}" index == (priorities.size - 1) ? "highest" : "high#{priorities.size - index}"
end end
update_all({:position_name => name}, :id => priority.id) where(:id => priority.id).update_all({:position_name => name})
end end
end end
end end