diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-02 19:16:32 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-02 19:16:32 +0000 |
commit | 96fca0b08f6d60e8736e8e3f95a5d0ae33779068 (patch) | |
tree | c3414fd53dad2b36bab58d898653fb9f53ff6a60 /app/controllers | |
parent | bd10a712177e8b13dd95b6a55ae195c2d33b3ef0 (diff) | |
download | redmine-96fca0b08f6d60e8736e8e3f95a5d0ae33779068.tar.gz redmine-96fca0b08f6d60e8736e8e3f95a5d0ae33779068.zip |
Replaces find(:all) calls.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10916 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects_controller.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index c8222db73..56b62263c 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -67,14 +67,14 @@ class ProjectsController < ApplicationController end def new - @issue_custom_fields = IssueCustomField.find(:all, :order => "#{CustomField.table_name}.position") + @issue_custom_fields = IssueCustomField.sorted.all @trackers = Tracker.sorted.all @project = Project.new @project.safe_attributes = params[:project] end def create - @issue_custom_fields = IssueCustomField.find(:all, :order => "#{CustomField.table_name}.position") + @issue_custom_fields = IssueCustomField.sorted.all @trackers = Tracker.sorted.all @project = Project.new @project.safe_attributes = params[:project] @@ -107,7 +107,7 @@ class ProjectsController < ApplicationController end def copy - @issue_custom_fields = IssueCustomField.find(:all, :order => "#{CustomField.table_name}.position") + @issue_custom_fields = IssueCustomField.sorted.all @trackers = Tracker.sorted.all @source_project = Project.find(params[:id]) if request.get? @@ -165,7 +165,7 @@ class ProjectsController < ApplicationController end def settings - @issue_custom_fields = IssueCustomField.find(:all, :order => "#{CustomField.table_name}.position") + @issue_custom_fields = IssueCustomField.sorted.all @issue_category ||= IssueCategory.new @member ||= @project.members.new @trackers = Tracker.sorted.all |