method

new

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: InverseOfAssociationRecursiveError
new(reflection = nil) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/associations.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
Register or log in to add new notes.