aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/module/attribute_accessors.rb
diff options
context:
space:
mode:
authorJared Beck <jared@jaredbeck.com>2017-02-03 17:22:24 -0500
committerJared Beck <jared@jaredbeck.com>2017-02-03 17:27:04 -0500
commite014042bad65b7d017b739124b7cd0e2d8f5105b (patch)
tree183f7b1f569e53e13dc8f83fb5c3b80d766c7a35 /activesupport/lib/active_support/core_ext/module/attribute_accessors.rb
parentd13bc5df902a2c82c3096b627830be97acbedf50 (diff)
downloadrails-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 'activesupport/lib/active_support/core_ext/module/attribute_accessors.rb')
0 files changed, 0 insertions, 0 deletions