Flowdock
method

construct_relation_for_association_calculations

Importance_0
v3.0.9 - 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 203
    def construct_relation_for_association_calculations
      including = (@eager_load_values + @includes_values).uniq
      join_dependency = ActiveRecord::Associations::ClassMethods::JoinDependency.new(@klass, including, arel.join_sql)
      relation = except(:includes, :eager_load, :preload)
      apply_join_dependency(relation, join_dependency)
    end
Register or log in to add new notes.