aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/contributing_to_ruby_on_rails.md
diff options
context:
space:
mode:
authorNate Smith <nate.smith@thescore.com>2015-05-14 11:21:24 -0400
committerGodfrey Chan <godfreykfc@gmail.com>2015-05-19 13:29:02 -0700
commitaf53280a4b5b3323ac87dc60deb2b1b781197b2b (patch)
tree654673a761ee89c5123173127f5750517fc19562 /guides/source/contributing_to_ruby_on_rails.md
parent0e12300c5e685ddc1b26c99fdb790e54a93153d5 (diff)
downloadrails-af53280a4b5b3323ac87dc60deb2b1b781197b2b.tar.gz
rails-af53280a4b5b3323ac87dc60deb2b1b781197b2b.tar.bz2
rails-af53280a4b5b3323ac87dc60deb2b1b781197b2b.zip
Patch `Delegator` to work with `#try`
`Delegator` inherits from `BasicObject`, which means that it will not have `Object#try` defined. It will then delegate the call to the underlying object, which will not (necessarily) respond to the method defined in the enclosing `Delegator`. This patches `Delegator` with the `#try` method to work around the surprising behaviour. Fixes #5790
Diffstat (limited to 'guides/source/contributing_to_ruby_on_rails.md')
0 files changed, 0 insertions, 0 deletions