instance method
joined_includes_values
Ruby on Rails 4.0.13
Since v3.1.12Signature
joined_includes_values()
Joins that are also marked for preloading. In which case we should just eager load them. Note that this is a naive implementation because we could have strings and symbols which represent the same association, but that aren’t matched by this. Also, we could have nested hashes which partially match, e.g. { a: :b } & { a: [:b, :c] }
Source
# File activerecord/lib/active_record/relation.rb, line 528
def joined_includes_values
includes_values & joins_values
end
Defined in activerecord/lib/active_record/relation.rb line 528
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Relation