diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-06-26 02:24:35 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-06-26 02:24:35 +0530 |
commit | 532c294deaa495c227f0cc5181bc068d777a1f25 (patch) | |
tree | b364c5ad5981e23e8a202eddeed9a53f3364a290 /activerecord | |
parent | 5a79ca660ad55236b7881f5e0655ae75b1b9ca37 (diff) | |
download | rails-532c294deaa495c227f0cc5181bc068d777a1f25.tar.gz rails-532c294deaa495c227f0cc5181bc068d777a1f25.tar.bz2 rails-532c294deaa495c227f0cc5181bc068d777a1f25.zip |
replace find(all) with all
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index 3d1bc5c1e0..24bb7c30f2 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -181,7 +181,7 @@ module ActiveRecord # # class RemoveEmptyTags < ActiveRecord::Migration # def up - # Tag.find(:all).each { |tag| tag.destroy if tag.pages.empty? } + # Tag.all.each { |tag| tag.destroy if tag.pages.empty? } # end # # def down @@ -227,7 +227,7 @@ module ActiveRecord # def up # add_column :people, :salary, :integer # Person.reset_column_information - # Person.find(:all).each do |p| + # Person.all.each do |p| # p.update_attribute :salary, SalaryCalculator.compute(p) # end # end @@ -247,7 +247,7 @@ module ActiveRecord # def up # ... # say_with_time "Updating salaries..." do - # Person.find(:all).each do |p| + # Person.all.each do |p| # p.update_attribute :salary, SalaryCalculator.compute(p) # end # end |