diff options
-rw-r--r-- | app/controllers/projects_controller.rb | 6 | ||||
-rw-r--r-- | app/controllers/reports_controller.rb | 4 | ||||
-rw-r--r-- | app/controllers/roles_controller.rb | 4 |
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 |