Merge pull request #494 from vijaydev/patch-5

Use all in place of find(:all)
This commit is contained in:
José Valim 2011-05-10 10:13:23 -07:00
commit 8660433537

@ -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