mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
e014042bad
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] |
||
---|---|---|
.. | ||
active_support | ||
active_support.rb |