method
make_inner_joins
v4.1.8 -
Show latest stable
- Class:
ActiveRecord::Associations::JoinDependency
make_inner_joins(parent, child)private
No documentation available.
# File activerecord/lib/active_record/associations/join_dependency.rb, line 172
def make_inner_joins(parent, child)
tables = child.tables
join_type = Arel::Nodes::InnerJoin
joins = make_constraints parent, child, tables, join_type
joins.concat child.children.flat_map { |c| make_inner_joins(child, c) }
end