класс ActiveRecord::RecordNotSaved
Вызывается методами ActiveRecord::Validations#save! и ActiveRecord::Base.create! при невозможности сохранения записи из-за её некорректности.
Атрибуты
record[R]
Публичные методы класса
# File activerecord/lib/active_record/errors.rb, line 57 def initialize(message, record = nil) @record = record super(message) end
Вызывает метод суперкласса
© 2004–2018 David Heinemeier Hansson
Licensed under the MIT License.