Skip to content
Snippets Groups Projects
Commit b3a3d3e2 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang
Browse files

replaced deprecated find_all calls

git-svn-id: http://redmine.rubyforge.org/svn/trunk@126 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 0820e745
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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"
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment