summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2006-12-26 21:18:44 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2006-12-26 21:18:44 +0000
commitb3a3d3e2fab59c542c40135b242364780e9a9768 (patch)
tree6ade309d078cf20302dee63ff8a8585113303a8f /app
parent0820e745d65b7a2f197df1a6128fe7cc196fc940 (diff)
downloadredmine-b3a3d3e2fab59c542c40135b242364780e9a9768.tar.gz
redmine-b3a3d3e2fab59c542c40135b242364780e9a9768.zip
replaced deprecated find_all calls
git-svn-id: http://redmine.rubyforge.org/svn/trunk@126 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/projects_controller.rb6
-rw-r--r--app/controllers/reports_controller.rb4
-rw-r--r--app/controllers/roles_controller.rb4
3 files changed, 7 insertions, 7 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 85c644d23..59f8f3564 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -84,11 +84,11 @@ class ProjectsController < ApplicationController
def settings
@root_projects = Project::find(:all, :conditions => ["parent_id is null and id <> ?", @project.id])
- @custom_fields = IssueCustomField::find_all
+ @custom_fields = IssueCustomField.find(:all)
@issue_category ||= IssueCategory.new
@member ||= @project.members.new
- @roles = Role.find_all
- @users = User.find_all - @project.members.find(:all, :include => :user).collect{|m| m.user }
+ @roles = Role.find(:all)
+ @users = User.find(:all) - @project.members.find(:all, :include => :user).collect{|m| m.user }
@custom_values ||= ProjectCustomField.find(:all).collect { |x| @project.custom_values.find_by_custom_field_id(x.id) || CustomValue.new(:custom_field => x) }
end
diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb
index c10929d5b..f493f5c60 100644
--- a/app/controllers/reports_controller.rb
+++ b/app/controllers/reports_controller.rb
@@ -20,12 +20,12 @@ class ReportsController < ApplicationController
before_filter :find_project, :authorize
def issue_report
- @statuses = IssueStatus.find_all
+ @statuses = IssueStatus.find :all
case params[:detail]
when "tracker"
@field = "tracker_id"
- @rows = Tracker.find_all
+ @rows = Tracker.find :all
@data = issues_by_tracker
@report_title = l(:field_tracker)
render :template => "reports/issue_report_details"
diff --git a/app/controllers/roles_controller.rb b/app/controllers/roles_controller.rb
index e16127b61..2307c5730 100644
--- a/app/controllers/roles_controller.rb
+++ b/app/controllers/roles_controller.rb
@@ -77,8 +77,8 @@ class RolesController < ApplicationController
flash[:notice] = l(:notice_successful_update)
end
end
- @roles = Role.find_all
- @trackers = Tracker.find_all
+ @roles = Role.find :all
+ @trackers = Tracker.find :all
@statuses = IssueStatus.find(:all, :include => :workflows)
end
end