method

apply_scope

apply_scope(scope, table, key, value)
private

No documentation available.

# File activerecord/lib/active_record/associations/association_scope.rb, line 156
        def apply_scope(scope, table, key, value)
          if scope.table == table
            scope.where!(key => value)
          else
            scope.where!(table.name => { key => value })
          end
        end