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