Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

paper_trail_viewer

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paper_trail_viewer

  • 1.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

Gem Version Build Status

PaperTrailViewer

Browse changes to records when using Ruby on Rails and the paper_trail gem.

Screenshot thumbnail showing the webapp

Installation

Add paper_trail_viewer to your bundle and add the following line to your config/routes.rb:

mount PaperTrailViewer::Engine => '/changes'

You can pick any path. Restart the server and go to the chosen path to view your versions.

To limit access, do something like this:

authenticate :user, ->*{ |u| u.superadmin? } do
  mount PaperTrailViewer::Engine => '/changes'
end

Configuration

Put configuration in config/initializers/paper_trail_viewer.rb.

E.g. for linking (or not) to the whodunnit user with a custom path helper:

PaperTrailViewer.user_path_method = :admin_path # default is :user_path
PaperTrailViewer.user_path_method = nil # don't link to the user

Other options are:

  • PaperTrailViewer.allow_rollback (default is true)
  • PaperTrailViewer.data_source (default is ActiveRecord)

Development

Setup

  • Clone the repository
  • Go into the directory
  • Run bin/setup to install Ruby and JS dependencies

Running tests

bundle exec rake

License

This program is provided under an MIT open source license, read the LICENSE.txt file for details.

To Note:

This project started as a fork of PaperTrailManager, which was originally developed by Igal Koshevoy, Reid Beels, and Micah Geisel.

FAQs

Package last updated on 03 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc