diff options
author | Jared Beck <jared@jaredbeck.com> | 2017-02-03 17:22:24 -0500 |
---|---|---|
committer | Jared Beck <jared@jaredbeck.com> | 2017-02-03 17:27:04 -0500 |
commit | e014042bad65b7d017b739124b7cd0e2d8f5105b (patch) | |
tree | 183f7b1f569e53e13dc8f83fb5c3b80d766c7a35 /actionmailer | |
parent | d13bc5df902a2c82c3096b627830be97acbedf50 (diff) | |
download | rails-e014042bad65b7d017b739124b7cd0e2d8f5105b.tar.gz rails-e014042bad65b7d017b739124b7cd0e2d8f5105b.tar.bz2 rails-e014042bad65b7d017b739124b7cd0e2d8f5105b.zip |
Docs: Correction: Module::DelegationError
When the delegation target is nil and the allow_nil option is not
in use, a Module::DelegationError is raised.
class C
delegate :a, to: :b
def b
nil
end
end
C.new.a
# => Module::DelegationError: C#a delegated to b.a, but b is nil
[ci skip]
Diffstat (limited to 'actionmailer')
0 files changed, 0 insertions, 0 deletions