123456789_123456789_123456789_123456789_123456789_

Exception: ActiveSupport::DelegationError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, NoMethodError
Instance Chain:
self, NoMethodError
Inherits: NoMethodError
  • ::Object
Defined in: activesupport/lib/active_support/delegation.rb

Overview

Error generated by delegate when a method is called on nil and allow_nil option is not used.

Class Method Summary

Class Method Details

.nil_target(method_name, target)

This method is for internal use only.
[ GitHub ]

  
# File 'activesupport/lib/active_support/delegation.rb', line 10

def nil_target(method_name, target) # :nodoc:
  new("#{method_name} delegated to #{target}, but #{target} is nil")
end