класс ActiveRecord::AttributeAssignmentError
Вызывается, когда произошла ошибка во время массового присвоения значения атрибуту через метод ActiveRecord::Base#attributes=. У исключения есть свойство attribute, которое представляет собой имя нарушающего атрибута.
Атрибуты
attribute[Ч]
exception[Ч]
Открытые методы класса
# File activerecord/lib/active_record/errors.rb, line 252 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.