method
references_eager_loaded_tables?
v7.1.3.2 -
Show latest stable
- Class:
ActiveRecord::Relation
references_eager_loaded_tables?()private
No documentation available.
# File activerecord/lib/active_record/relation.rb, line 1022
def references_eager_loaded_tables?
joined_tables = build_joins([]).flat_map do |join|
if join.is_a?(Arel::Nodes::StringJoin)
tables_in_string(join.left)
else
join.left.name
end
end
joined_tables << table.name
# always convert table names to downcase as in Oracle quoted table names are in uppercase
joined_tables.map!(&:downcase)
!(references_values.map(&:to_s) - joined_tables).empty?
end