method
scope_allows_automatic_inverse_of?
v8.1.1 -
Show latest stable
- 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).