1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/lib
Xavier Noria 65850baf98 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.
2013-04-26 19:58:54 +02:00
..
active_support Module#delegate checks nilness rather that falsehood if :allow_nil is true, and avoids multiple evaluation of the target method 2013-04-26 19:58:54 +02:00
active_support.rb Updated copyright notices for 2013 2012-12-31 20:35:29 +00:00