Replaces find(:all) calls.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10917 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -44,8 +44,7 @@ module Redmine
|
||||
end
|
||||
|
||||
def available_custom_fields
|
||||
CustomField.find(:all, :conditions => "type = '#{self.class.name}CustomField'",
|
||||
:order => 'position')
|
||||
CustomField.where("type = '#{self.class.name}CustomField'").sorted.all
|
||||
end
|
||||
|
||||
# Sets the values of the object's custom fields
|
||||
|
||||
Reference in New Issue
Block a user