Flowdock
method

apply_scope

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: AssociationScope
apply_scope(scope, table, key, value) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/associations/association_scope.rb, line 154
        def apply_scope(scope, table, key, value)
          if scope.table == table
            scope.where!(key => value)
          else
            scope.where!(table.name => { key => value })
          end
        end
Register or log in to add new notes.