класс ActiveRecord::SoleRecordExceeded
Вызывается, когда Active Record находит несколько записей, но ожидается только одна.
Атрибуты
record[Ч]
Публичные методы класса
# File activerecord/lib/active_record/errors.rb, line 174
def initialize(record = nil)
@record = record
super "Wanted only one #{record&.name || "record"}"
end Вызывает метод суперкласса
© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.