diff options
author | Xavier Noria <fxn@hashref.com> | 2013-04-26 19:46:44 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2013-04-26 19:58:54 +0200 |
commit | 65850baf984a9349fe96bea136b81eaa36404a02 (patch) | |
tree | e8038eaf8e186e5f36e1c1c3586508278bd0d1bd /activesupport/test/file_update_checker_test.rb | |
parent | 051d289030a6cb86590cd1b619eae1879b48458a (diff) | |
download | rails-65850baf984a9349fe96bea136b81eaa36404a02.tar.gz rails-65850baf984a9349fe96bea136b81eaa36404a02.tar.bz2 rails-65850baf984a9349fe96bea136b81eaa36404a02.zip |
Module#delegate checks nilness rather that falsehood if :allow_nil is true, and avoids multiple evaluation of the target method
Notes:
1) I hope nilness is a word.
2) See rationale for avoiding multiple evaluation in a comment in the patch, credit goes to @jeremy for pointing out this gotcha in the existing implementation.
3) Embeds a little joke dedicated to @pixeltrix (it could be worse! :D).
References #10347.
Diffstat (limited to 'activesupport/test/file_update_checker_test.rb')
0 files changed, 0 insertions, 0 deletions