Sebastian
Sebastian

Reputation: 250

How to track WHEN a model attribute changes using Rails 4?

I need to find a way to track the specific moment in which a model attribute has changed from one state to another.

Any ideas? Thank you.

Upvotes: 0

Views: 2441

Answers (2)

RAJ
RAJ

Reputation: 9747

You will need to use one of the following gems to keep track of changes.

Espinita

Papertrail

Miks' Audited

All the above mentioned gems will work for you

EDIT: I have not used but you can give a try to Public Activity Gem too.

Upvotes: 3

Avdept
Avdept

Reputation: 2289

There is Auditable Gem, that would do the trick for you. Though there are lots of others that have similar functuinality, see related section https://www.ruby-toolbox.com/projects/auditable

Upvotes: 0

Related Questions