method
association_scope
v7.1.3.4 -
Show latest stable
- Class:
ActiveRecord::Associations::Association
association_scope()private
The scope for this association.
Note that the association_scope is merged into the target_scope only when the scope method is called. This is because at that point the call may be surrounded by scope.scoping { … } or unscoped { … } etc, which affects the scope which actually gets built.