replaced deprecated find_all calls
git-svn-id: http://redmine.rubyforge.org/svn/trunk@126 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
0820e745d6
commit
b3a3d3e2fa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue