method
write_attribute
v4.1.8 -
Show latest stable
- Class:
ActiveRecord::AttributeMethods::Write
write_attribute(attr_name, value)public
Updates the attribute identified by attr_name with the specified value. Empty strings for fixnum and float columns are turned into nil.