Acts As Overridable plugin

Plugin details

A rails plugin that lets you set the attribute value of an object without losing the original value.

Websitehttp://www.vanutsteen.nl/ Repositorygit://github.com/LeonB/acts_as_overridable.git Author Leon Bogaert Tags override LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install git://github.com/LeonB/acts_as_overridable.git
fiesta = Car.find_by_modeltype('Fiesta')
fiesta.number_of_wheels = fiesta.number_of_wheels + 1
fiesta.save_with_overridable_attributes
# fiesta.original_values.length will be 1


Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, about 1 year ago