module ActiveRecord::Associations::JoinDependency::HasCount
Public Instance Methods
build_with_has_count(associations, base_klass)
click to toggle source
# File lib/active_record/associations/join_dependency/has_count.rb, line 12 def build_with_has_count(associations, base_klass) associations.map do |name, right| reflection = find_reflection base_klass, name if reflection.macro == :has_count raise EagerLoadHasCountError.new(reflection) end end build_without_has_count(associations, base_klass) end