method

construct_relation_for_association_calculations

Importance_0
v3.2.8 - Show latest stable - 0 notes - Class: ActiveRecord::FinderMethods
construct_relation_for_association_calculations() protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/relation/finder_methods.rb, line 223
    def construct_relation_for_association_calculations
      including = (@eager_load_values + @includes_values).uniq
      join_dependency = ActiveRecord::Associations::JoinDependency.new(@klass, including, arel.froms.first)
      relation = except(:includes, :eager_load, :preload)
      apply_join_dependency(relation, join_dependency)
    end
Register or log in to add new notes.