Class: ActiveRecord::EagerLoadHasCountError

Inherits:
ActiveRecordError
  • Object
show all
Defined in:
lib/active_record/associations/join_dependency/has_count.rb

Overview

This imitates EagerLoadPolymorphicError

Instance Method Summary collapse

Constructor Details

#initialize(reflection) ⇒ EagerLoadHasCountError

Returns a new instance of EagerLoadHasCountError.



4
5
6
# File 'lib/active_record/associations/join_dependency/has_count.rb', line 4

def initialize(reflection)
  super("Cannot eagerly load the has_count association #{reflection.name.inspect}")
end