Class: ActiveRecord::EagerLoadCountLoaderError
- Inherits:
-
ActiveRecordError
- Object
- ActiveRecordError
- ActiveRecord::EagerLoadCountLoaderError
- Defined in:
- lib/active_record/count_loader/join_dependency_extension.rb
Overview
This imitates EagerLoadPolymorphicError
Instance Method Summary collapse
-
#initialize(reflection) ⇒ EagerLoadCountLoaderError
constructor
A new instance of EagerLoadCountLoaderError.
Constructor Details
#initialize(reflection) ⇒ EagerLoadCountLoaderError
Returns a new instance of EagerLoadCountLoaderError.
4 5 6 |
# File 'lib/active_record/count_loader/join_dependency_extension.rb', line 4 def initialize(reflection) super("Cannot eagerly load the count_loader association #{reflection.name.inspect}") end |