summaryrefslogtreecommitdiffstats
path: root/app/models/document_category.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-10-28 18:43:11 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-10-28 18:43:11 +0000
commitabff0531de82ed932e2489c0110e574579086e94 (patch)
treead9b4f3c7c974405babe22af99284bf1753497c2 /app/models/document_category.rb
parentcb2cd12dad87b01ce22eee9516055c11317b22e5 (diff)
downloadredmine-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
Diffstat (limited to 'app/models/document_category.rb')
-rw-r--r--app/models/document_category.rb2
1 files changed, 1 insertions, 1 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