method

valid_inverse_reflection?

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActiveRecord::Reflection::AssociationReflection
valid_inverse_reflection?(reflection) private

Checks if the inverse reflection that is returned from the automatic_inverse_of method is a valid reflection. We must make sure that the reflection’s active_record name matches up with the current reflection’s klass name.

Show source
Register or log in to add new notes.