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