Permalink
Browse files

Merge pull request #494 from vijaydev/patch-5

Use all in place of find(:all)
  • Loading branch information...
2 parents 134a05a + e2390c0 commit 86604335374f08d9e1889801dafbe92e79b2a1eb @josevalim josevalim committed May 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/commands/runner.rb
@@ -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.all.each { |p| p.price *= 2 ; p.save! }"
opts.separator "-------------------------------------------------------------"
end

0 comments on commit 8660433

Please sign in to comment.