LearningRoR
LearningRoR

Reputation: 27222

Paper Trail Gem: Tracking user activity to give reputation points

I have a question about the gem called Paper Trail. I want to give reputation points to the ones who are the most active on the website. Can this gem help me with this? Also, Is it possible to track which users edited or created a model that doesn't belong to them?

Upvotes: 1

Views: 652

Answers (1)

Peter Brown
Peter Brown

Reputation: 51717

Any time a change is made in your system, paper trail can track the user id via a whodunnit property. This is set automatically if your controller makes a current_user object available. I know authlogic does this and I bet devise does too. so yes, it will track any user, regardless of whether there is an actual relationship between the user and the model.

Upvotes: 2

Related Questions