No commit activity in last 3 years
No release in over 3 years
ActiveRecord versioning
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 1.17
>= 0
~> 0.7.5

Runtime

 Project Readme

ActiveRecord history

Installation

gem install record_history
rails g record_history:install

Usage

# activate history logging for model
class Item < ActiveRecord::Base
  has_record_history
end

# activate history logging for model (only for "name" field)
class Item < ActiveRecord::Base
  has_record_history :only => [:name]
end

# activate history logging for model (except 'name' field)
class Item < ActiveRecord::Base
  has_record_history :ignore => [:name]
end

# activate history logging for model (on update)
class Item < ActiveRecord::Base
  has_record_history :on => [:update]
end

# get history for object
item = Item.first
history = item.first.record_history
history.first.old_value
hostory.first.new_value


# declare that User is author for some record_history items
class User < ActiveRecord::Base
  is_record_history_author
end

# get record_history items created by user
User.first.written_history

test 2