модуль ActiveRecord::AttributeMethods::Write
Публичные методы экземпляра
# File activerecord/lib/active_record/attribute_methods/write.rb, line 31 def write_attribute(attr_name, value) write_attribute_with_type_cast(attr_name, value, true) end
Обновляет атрибут, идентифицируемый attr_name заданным value. Пустые строки для столбцов типа Целое число и Число с плавающей точкой преобразуются в nil.
© 2004–2018 David Heinemeier Hansson
Licensed under the MIT License.