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
Jared Beck e014042bad 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]
2017-02-03 17:27:04 -05:00
..
active_support Docs: Correction: Module::DelegationError 2017-02-03 17:27:04 -05:00
active_support.rb Bump license years for 2017 2016-12-31 08:34:08 -05:00