Exception: ActiveRecord::EagerLoadPolymorphicError

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

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(reflection) ⇒ EagerLoadPolymorphicError

Returns a new instance of EagerLoadPolymorphicError.



83
84
85
# File 'activerecord/lib/active_record/associations.rb', line 83

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