Merge pull request #494 from vijaydev/patch-5
Use all in place of find(:all)
This commit is contained in:
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user