aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/file_update_checker_test.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2013-04-26 19:46:44 +0200
committerXavier Noria <fxn@hashref.com>2013-04-26 19:58:54 +0200
commit65850baf984a9349fe96bea136b81eaa36404a02 (patch)
treee8038eaf8e186e5f36e1c1c3586508278bd0d1bd /activesupport/test/file_update_checker_test.rb
parent051d289030a6cb86590cd1b619eae1879b48458a (diff)
downloadrails-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