Replaces find(:all) calls.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10918 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2012-12-02 20:28:37 +00:00
1 parent 536747b747
commit abd921736b
16 files changed
+21 -21

No files matched your search

+2 -2
View File
@@ -7,8 +7,8 @@ class CreateProjectsTrackers < ActiveRecord::Migration
add_index :projects_trackers, :project_id, :name => :projects_trackers_project_id
# Associates all trackers to all projects (as it was before)
tracker_ids = Tracker.find(:all).collect(&:id)
Project.find(:all).each do |project|
tracker_ids = Tracker.all.collect(&:id)
Project.all.each do |project|
project.tracker_ids = tracker_ids
end
end