Spec-Zone.ru › Ruby on Rails 7.1

класс ActiveRecord::AttributeAssignmentError

Родитель:
ActiveRecord::ActiveRecordError

Вызывается при ошибке массового присваивания атрибута через метод ActiveRecord::Base#attributes=. У исключения есть свойство attribute, которое представляет имя нарушающего атрибута.

Атрибуты

attribute[R]
exception[R]

Открытые методы класса

new(message = nil, exception = nil, attribute = nil) Показать исходный код
# File activerecord/lib/active_record/errors.rb, line 424
def initialize(message = nil, exception = nil, attribute = nil)
  super(message)
  @exception = exception
  @attribute = attribute
end
Вызывает метод родительского класса

© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API