method

scope_for_association

scope_for_association(scope = relation)
public

No documentation available.

# File activerecord/lib/active_record/scoping/named.rb, line 36
        def scope_for_association(scope = relation) # :nodoc:
          if current_scope&.empty_scope?
            scope
          else
            default_scoped(scope)
          end
        end