Replaces find(:all) calls.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10916 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-12-02 19:16:32 +00:00
parent bd10a71217
commit 96fca0b08f
4 changed files with 8 additions and 6 deletions
+2
View File
@@ -30,6 +30,8 @@ class CustomField < ActiveRecord::Base
validate :validate_custom_field
before_validation :set_searchable
scope :sorted, order("#{table_name}.position ASC")
CUSTOM_FIELDS_TABS = [
{:name => 'IssueCustomField', :partial => 'custom_fields/index',
:label => :label_issue_plural},