Class: ActiveRecord::EagerLoadHasCountError
- Inherits:
-
ActiveRecordError
- Object
- ActiveRecordError
- ActiveRecord::EagerLoadHasCountError
- Defined in:
- lib/active_record/associations/join_dependency/has_count.rb
Overview
This imitates EagerLoadPolymorphicError
Instance Method Summary collapse
-
#initialize(reflection) ⇒ EagerLoadHasCountError
constructor
A new instance of EagerLoadHasCountError.
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 |