0.0
No commit activity in last 3 years
No release in over 3 years
Allow to create a timeline of your crud operations
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 3.2.9
 Project Readme

TimeLine¶ ↑

Track the entire life cycle of ActiveRecord models.

Installation¶ ↑

Add the gem to your Gemfile

gem "models_timeline"

Copy some migration stuff:

rake models_timeline:install:migrations
rake db:migrate

Add to your route.rb file:

mount ModelsTimeline::Engine => "/models_timeline"

Requires Ruby 1.9.2 or later.

Usage¶ ↑

Call timeline in an ActiveRecord class and pass the name of the attributes you wish to track of your Model.

Track all attributes change of your AR model:

class Product < ActiveRecord::Base
  timeline
end

This means that every attributes changes will be tracked.

Track one or more attributes:

class Product < ActiveRecord::Base
  timeline(:price, :name)
end

Only the changes of name and price will be tracked.

To see the tracked changes go to:

http://domain:port/models_timeline

Development Questions or problems? Please post them on the issue tracker. You can contribute changes by forking the project and submitting a pull request. You can ensure the tests passing by running bundle and rake.

This gem is created by Angelo Capilleri and is under the MIT License.