123456789_123456789_123456789_123456789_123456789_

Exception: ActiveRecord::InverseOfAssociationRecursiveError

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ActiveRecordError, StandardError
Instance Chain:
self, ActiveRecordError, StandardError
Inherits: ActiveRecord::ActiveRecordError
Defined in: activerecord/lib/active_record/associations/errors.rb

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(reflection = nil) ⇒ InverseOfAssociationRecursiveError

[ GitHub ]

  
# File 'activerecord/lib/active_record/associations/errors.rb', line 64

def initialize(reflection = nil)
  if reflection
    @reflection = reflection
    super("Inverse association #{reflection.name} (#{reflection.options[:inverse_of].inspect} in #{reflection.class_name}) is recursive.")
  else
    super("Inverse association is recursive.")
  end
end

Instance Attribute Details

#reflection (readonly)

[ GitHub ]

  
# File 'activerecord/lib/active_record/associations/errors.rb', line 63

attr_reader :reflection