method
valid_inverse_reflection?
v8.0.0 -
Show latest stable
- 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.