method
make_constraints
v4.2.9 -
Show latest stable
- Class:
ActiveRecord::Associations::JoinDependency
make_constraints(parent, child, tables, join_type)private
No documentation available.
# File activerecord/lib/active_record/associations/join_dependency.rb, line 165
def make_constraints(parent, child, tables, join_type)
chain = child.reflection.chain
foreign_table = parent.table
foreign_klass = parent.base_klass
child.join_constraints(foreign_table, foreign_klass, child, join_type, tables, child.reflection.scope_chain, chain)
end