From 96fca0b08f6d60e8736e8e3f95a5d0ae33779068 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 2 Dec 2012 19:16:32 +0000 Subject: Replaces find(:all) calls. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10916 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/custom_field.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/models/custom_field.rb') diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb index 22f29d3ac..08c66b57b 100644 --- a/app/models/custom_field.rb +++ b/app/models/custom_field.rb @@ -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}, -- cgit v1.2.3