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.



60
61
62
# File 'lib/active_record/associations.rb', line 60

def initialize(reflection)
  @reflection = reflection
end

Instance Method Details

#messageObject



64
65
66
# File 'lib/active_record/associations.rb', line 64

def message
  "Can not eagerly load the polymorphic association #{@reflection.name.inspect}"
end