public
Description: Very simple Rails plugin that adds a previous_changes method to ActiveRecord objects that returns changes made during the previous save. Note that this functionality is scheduled to be built-in to Rails 3.0.
Homepage:
Clone URL: git://github.com/tomriley/previous_changes.git
name age message
file README Loading commit data...
file init.rb
directory lib/
file previous_changes.gemspec
README
Very simple Rails plugin that adds the method 'previous_changes' to ActiveRecord objects that can be called after saving 
a model object to fetch what the method 'changes' would have returned just before the save occurred (a hash from 
attribute name to a pair of values - the old attribute value and the new attribute value).

Installation
------------

$ gem sources -a http://gems.github.com (you only have to do this once)
$ sudo gem install tomriley-previous_changes

Then add a dependency to your rails environment.rb:

config.gem 'tomriley-previous_changes', :lib => 'previous_changes', :version => '0.0.1'