method

write_attribute

rails latest stable - Class: ActiveRecord::AttributeMethods::Write
write_attribute(attr_name, value)
public

Updates the attribute identified by attr_name using the specified value. The attribute value will be type cast upon being read.