提交 86604335 编写于 作者: J José Valim

Merge pull request #494 from vijaydev/patch-5

Use all in place of find(:all)
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
opts.separator "-------------------------------------------------------------" opts.separator "-------------------------------------------------------------"
opts.separator "#!/usr/bin/env #{File.expand_path($0)} runner" opts.separator "#!/usr/bin/env #{File.expand_path($0)} runner"
opts.separator "" 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 "-------------------------------------------------------------" opts.separator "-------------------------------------------------------------"
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册