diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-10-28 18:43:11 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-10-28 18:43:11 +0000 |
commit | abff0531de82ed932e2489c0110e574579086e94 (patch) | |
tree | ad9b4f3c7c974405babe22af99284bf1753497c2 | |
parent | cb2cd12dad87b01ce22eee9516055c11317b22e5 (diff) | |
download | redmine-abff0531de82ed932e2489c0110e574579086e94.tar.gz redmine-abff0531de82ed932e2489c0110e574579086e94.zip |
Code cleanup, removed raw SQL.
git-svn-id: http://svn.redmine.org/redmine/trunk@13522 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/models/document_category.rb | 2 | ||||
-rw-r--r-- | app/models/issue_priority.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/document_category.rb b/app/models/document_category.rb index 4bfbba493..c84d27e8b 100644 --- a/app/models/document_category.rb +++ b/app/models/document_category.rb @@ -29,7 +29,7 @@ class DocumentCategory < Enumeration end def transfer_relations(to) - documents.update_all("category_id = #{to.id}") + documents.update_all(:category_id => to.id) end def self.default diff --git a/app/models/issue_priority.rb b/app/models/issue_priority.rb index 182235cb6..1e00cc01f 100644 --- a/app/models/issue_priority.rb +++ b/app/models/issue_priority.rb @@ -32,7 +32,7 @@ class IssuePriority < Enumeration end def transfer_relations(to) - issues.update_all("priority_id = #{to.id}") + issues.update_all(:priority_id => to.id) end def css_classes |