Class: ActiveRecord::EagerLoadCountLoaderError

Inherits:
ActiveRecordError
  • Object
show all
Defined in:
lib/active_record/count_loader/join_dependency_extension.rb

Overview

This imitates EagerLoadPolymorphicError

Instance Method Summary collapse

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