mirror of
https://github.com/redmine/redmine.git
synced 2026-01-22 15:33:22 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user