Exception: ActiveRecord::EagerLoadPolymorphicError

Inherits:
ActiveRecordError show all
Defined in:
lib/active_record/associations.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(reflection) ⇒ EagerLoadPolymorphicError

Returns a new instance of EagerLoadPolymorphicError.



89
90
91
# File 'lib/active_record/associations.rb', line 89

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