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