method

valid_inverse_reflection?

Importance_1
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.

Note: klass will always be valid because when there’s a NameError from calling klass, reflection will already be set to false.

Show source
Register or log in to add new notes.