Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 4 Auditing Gem [closed]

I'm looking for a Rails 4 supported gem that does auditing related tasks. Similar gems I found, but are not supporting Rails 4 (except for paper-trail, but it has all of that versioning stuff that I don't need):

github audited

github pfeed

github userstamp

github paper_trail

Does anyone have any recommendations? Audited gem seems to be the most similar to what I'm looking for.

Thanks! :-)

like image 459
andro1d Avatar asked Oct 15 '13 01:10

andro1d


People also ask

What versions of Rails does audited work with?

Audited currently (5.x) works with Rails 7.0, 6.1, 6.0, 5.2, 5.1, and 5.0. For Rails 4, use gem version 4.x For Rails 3, use gem version 3.0 or see the 3.0-stable branch. Audited supports and is tested against the following Ruby versions:

How do I create an audit table in rails?

Then, from your Rails app directory, create the audits table: By default changes are stored in YAML format. If you're using PostgreSQL, then you can use rails generate audited:install --audited-changes-column-type jsonb (or json for MySQL 5.7+ and Rails 5+) to store audit changes natively with database JSON column types.

How to generate audit changes in rails using JSON?

If you're using PostgreSQL, then you can use rails generate audited:install --audited-changes-column-type jsonb (or json for MySQL 5.7+ and Rails 5+) to store audit changes natively with database JSON column types.

What is Ruby on rails?

Ruby on Rails is a full-stack web framework optimized for programmer happiness and sustainable productivity. It encourages beautiful code by favoring convention over configuration.


1 Answers

Came across paper_trail which seems to be an auditing library which is under active development.

After some evaluation I chose this library for one of my projects.

like image 144
Can't Tell Avatar answered Sep 18 '22 13:09

Can't Tell