класс ActiveRecord::EagerLoadPolymorphicError
Эта ошибка возникает при попытке выполнить жадное загрузку полиморфной ассоциации с помощью JOIN. Жадная загрузка полиморфных ассоциаций возможна только с помощью ActiveRecord::Relation#preload.
Публичные методы класса
# File activerecord/lib/active_record/associations.rb, line 181
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–2018 David Heinemeier Hansson
Licensed under the MIT License.