класс ActiveRecord::EagerLoadPolymorphicError
Эта ошибка возникает при попытке загрузить полиморфное отношение с помощью JOIN. Загрузка полиморфных отношений возможна только с помощью ActiveRecord::Relation#preload.
Публичные методы класса
# File activerecord/lib/active_record/associations.rb, line 241
def initialize(reflection = nil)
if reflection
super("Cannot eagerly load the polymorphic association #{reflection.name.inspect}")
else
super("Eager load polymorphic error.")
end
end Вызывает метод суперкласса
© 2004–2020 David Heinemeier Hansson
Licensed under the MIT License.