diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-08 12:19:59 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-08 12:19:59 +0000 |
commit | 9f079015bf355ac2a67d1a6260b3e9d25ae8ef49 (patch) | |
tree | c57d651c59622c077bede8c49ab43e3b63610ec1 /app/models/group.rb | |
parent | 599ac20570fb98932df7e55e1e8813fb2a8b46c2 (diff) | |
download | redmine-9f079015bf355ac2a67d1a6260b3e9d25ae8ef49.tar.gz redmine-9f079015bf355ac2a67d1a6260b3e9d25ae8ef49.zip |
Rails4: replace deprecated Relation#update_all at Group model
git-svn-id: http://svn.redmine.org/redmine/trunk@12529 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/group.rb')
-rw-r--r-- | app/models/group.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/group.rb b/app/models/group.rb index 3e4bdf09a..5d49a138a 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -87,6 +87,6 @@ class Group < Principal def remove_references_before_destroy return if self.id.nil? - Issue.update_all 'assigned_to_id = NULL', ['assigned_to_id = ?', id] + Issue.where(['assigned_to_id = ?', id]).update_all('assigned_to_id = NULL') end end |