instance method
references_eager_loaded_tables?
Ruby on Rails 7.2.3
Since v3.0.20 Private — implementation detail, not part of the public APISignature
references_eager_loaded_tables?()
No documentation comment.
Source
# File activerecord/lib/active_record/relation.rb, line 1466
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
Defined in activerecord/lib/active_record/relation.rb line 1466
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Relation