Acts As Modified plugin

Plugin details

This plugin lets you track attribute changes to an ActiveRecord object.

Repositoryhttp://svn.viney.net.nz/things/rails/plugins/acts_as_modified/ Author Jonathan Viney Tags ActiveRecord, track LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://svn.viney.net.nz/things/rails/plugins/acts_as_modified/
  class Person < ActiveRecord::Base
    acts_as_modified
  end
  
  p = Person.find(1)
  p.name # => "Jonathan"
  p.modified? # => false
  p.name = "David"
  p.modified? # => true
  p.name_modified? # => true


See ActiveRecord::Acts::Modified::InstanceMethods for details of the all the methods that are available.

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