Use Ruby attribute setters and not write_attribute
This change will call the writer methods defined on an AR model, if they're implemented, instead of going behind their back. This also avoids a rails 3 deprecation warning, if the named attributes aren't actually database attributes.
Please register or sign in to comment