класс ActiveRecord::UnknownAttributeError
Вызывается, когда неизвестные атрибуты предоставляются через массовое назначение.
Атрибуты
attribute[R]
record[R]
Открытые методы класса
# File activemodel/lib/active_model/errors.rb, line 576
def initialize(record, attribute)
@record = record
@attribute = attribute
super("unknown attribute '#{attribute}' for #{@record.class}.")
end Вызывает метод суперкласса
© 2004–2018 David Heinemeier Hansson
Licensed under the MIT License.