Plugins - Acts As Modified

StarAdd to favorites

acts_as_modified

If you find this plugin useful, please consider a donation to show your support!

  http://www.paypal.com/cgi-bin/webscr?cmd=_send-money

  Email address: jonathan.viney@gmail.com

Instructions

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

Installation

  script/plugin install http://svn.viney.net.nz/things/rails/plugins/acts_as_modified

Usage

  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.

Help

Feel free to email with any problems, suggestions, bugs etc…

  jonathan dot viney @ gmail . com
  christopher dot k dot hall @ gmail . com

Credit

Based on the original acts_as_modified plugin by Chris Hall.

Jonathan Viney

http://svn.viney.net.nz/things/rails/plugins/acts_as_modified/

Rails' (MIT)

  • Currently 4.2/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Model

Tags

Comments

Add a comment
Jan 6 Jun 2008

not needed since rails 2.1 (http://ryandaigle.com/articles/2008/3/31/what-s-new-in-edge-rails-dirty-objects)

knox 26 Nov 2007

whats the difference to ActiveRecordChanged ?

ctran 24 Jul 2006

No longer available?

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?