aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-05-10 10:08:31 -0700
committerVijay Dev <vijaydev.cse@gmail.com>2011-05-10 10:08:31 -0700
commite2390c08ce0e00955b81c0828021cf1fa0046c45 (patch)
treec6cad010fbfb964b1ccc6344c0c5b2f8ccb12de4 /railties/lib/rails/commands
parent134a05adcb84c6491ea898133cd91d7e95d2dcff (diff)
downloadrails-e2390c08ce0e00955b81c0828021cf1fa0046c45.tar.gz
rails-e2390c08ce0e00955b81c0828021cf1fa0046c45.tar.bz2
rails-e2390c08ce0e00955b81c0828021cf1fa0046c45.zip
Use all in place of find(:all)
Diffstat (limited to 'railties/lib/rails/commands')
-rw-r--r--railties/lib/rails/commands/runner.rb2
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