diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-07 11:20:28 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-07 15:37:31 -0700 |
commit | e4f9a0b92531fa68cc2cdbd52b66904515fcd486 (patch) | |
tree | 9272769c217e252d3b1aae61a36d48d052895af6 /railties/lib | |
parent | 4485351501d39280102ea1b8db270a5a27ed7b63 (diff) | |
download | rails-e4f9a0b92531fa68cc2cdbd52b66904515fcd486.tar.gz rails-e4f9a0b92531fa68cc2cdbd52b66904515fcd486.tar.bz2 rails-e4f9a0b92531fa68cc2cdbd52b66904515fcd486.zip |
use Proc.new to reduce some conditionals
Proc.new will pick up the passed in block, but since it's a default
param, it won't get evaluated unless someone doesn't pass in an app. It
will raise an exception if no block is provided.
Diffstat (limited to 'railties/lib')
0 files changed, 0 insertions, 0 deletions