Class: ActiveRecord::EagerLoadPolymorphicError

Inherits:
ActiveRecordError
  • Object
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.



54
55
56
# File 'lib/active_record/associations.rb', line 54

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