Skip to content

Commit

Permalink
Example now uses find_each instead of find(:all).each
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaberez committed Mar 27, 2011
1 parent 2c0c4d7 commit 2f96748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/commands/runner.rb
Expand Up @@ -25,7 +25,7 @@
opts.separator "-------------------------------------------------------------"
opts.separator "#!/usr/bin/env #{File.expand_path($0)} runner"
opts.separator ""
opts.separator "Product.find(:all).each { |p| p.price *= 2 ; p.save! }"
opts.separator "Product.find_each { |p| p.price *= 2 ; p.save! }"
opts.separator "-------------------------------------------------------------"
end

Expand Down

0 comments on commit 2f96748

Please sign in to comment.