No commit activity in last 3 years
No release in over 3 years
An ActiveRecord plugin that provides a previous_changes method to fetch changes made during the last save operation
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project 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'