method

update

update(attribute_names = @attributes.keys)
private

Updates the associated record with values matching those of the instance attributes. Returns the number of affected rows.