diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-10 10:13:23 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-10 10:13:23 -0700 |
commit | 86604335374f08d9e1889801dafbe92e79b2a1eb (patch) | |
tree | c6cad010fbfb964b1ccc6344c0c5b2f8ccb12de4 | |
parent | 134a05adcb84c6491ea898133cd91d7e95d2dcff (diff) | |
parent | e2390c08ce0e00955b81c0828021cf1fa0046c45 (diff) | |
download | rails-86604335374f08d9e1889801dafbe92e79b2a1eb.tar.gz rails-86604335374f08d9e1889801dafbe92e79b2a1eb.tar.bz2 rails-86604335374f08d9e1889801dafbe92e79b2a1eb.zip |
Merge pull request #494 from vijaydev/patch-5
Use all in place of find(:all)
-rw-r--r-- | railties/lib/rails/commands/runner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/runner.rb b/railties/lib/rails/commands/runner.rb index ddd08a32ee..f8b00e7249 100644 --- a/railties/lib/rails/commands/runner.rb +++ b/railties/lib/rails/commands/runner.rb @@ -25,7 +25,7 @@ ARGV.clone.options do |opts| 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 |