mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Use all in place of find(:all)
This commit is contained in:
parent
134a05adcb
commit
e2390c08ce
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue