I'd like to use Devise with acts_as_audited
.
I have googled it, but the results weren't very clear.
What are its pros and cons?
Asked
Active
Viewed 411 times
4

ekremkaraca
- 1,453
- 2
- 18
- 37

Rashmi
- 629
- 1
- 11
- 35
1 Answers
0
I use Paper Trail here which is newer but much the same thing, and the top of my Devise User model looks like this:
class User < ActiveRecord::Base
has_paper_trail
And now I have a growing versions
table in my DB with a row for every CRUD action on the User model.
The benefits are that all previous versions of your model's data are saved and stored in YAML, allowing you to rollback/undo.
The cons? Only database size and perhaps a small performance hit at Write/Update time.

shashin
- 392
- 2
- 16