класс ActiveRecord::AttributeAssignmentError
Выбрасывается, когда произошла ошибка при выполнении массового назначения атрибута через метод ActiveRecord::Base#attributes=. У исключения есть свойство attribute, которое содержит имя нарушающего атрибута.
Атрибуты
attribute[Ч]
exception[Ч]
Публичные методы класса
# File activerecord/lib/active_record/errors.rb, line 254 def initialize(message = nil, exception = nil, attribute = nil) super(message) @exception = exception @attribute = attribute end
Вызывает метод родительского класса
© 2004–2018 David Heinemeier Hansson
Licensed under the MIT License.