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