Flowdock
method

apply_scope

Importance_0
v6.1.3.1 - 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 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
Register or log in to add new notes.