mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-23 08:51:13 +00:00
Code cleanup, removed raw SQL.
git-svn-id: http://svn.redmine.org/redmine/trunk@13522 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
cb2cd12dad
commit
abff0531de
@ -29,7 +29,7 @@ class DocumentCategory < Enumeration
|
|||||||
end
|
end
|
||||||
|
|
||||||
def transfer_relations(to)
|
def transfer_relations(to)
|
||||||
documents.update_all("category_id = #{to.id}")
|
documents.update_all(:category_id => to.id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.default
|
def self.default
|
||||||
|
|||||||
@ -32,7 +32,7 @@ class IssuePriority < Enumeration
|
|||||||
end
|
end
|
||||||
|
|
||||||
def transfer_relations(to)
|
def transfer_relations(to)
|
||||||
issues.update_all("priority_id = #{to.id}")
|
issues.update_all(:priority_id => to.id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def css_classes
|
def css_classes
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user