method

scope_allows_automatic_inverse_of?

Importance_1
v7.1.3.4 - Show latest stable - 0 notes - Class: ActiveRecord::Reflection::AssociationReflection
scope_allows_automatic_inverse_of?(reflection, inverse_reflection) private

Scopes on the potential inverse reflection prevent automatic inverse_of, since the scope could exclude the owner record we would inverse from. Scopes on the reflection itself allow for automatic inverse_of as long as <tt>config.active_record.automatic_scope_inversing is set to true (the default for new applications).

Show source
Register or log in to add new notes.