Skip to content
Snippets Groups Projects
Commit 48c36c25 authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

tracking user for papertrail

parent c1e5ca8b
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,9 @@ class ApplicationController < ActionController::API ...@@ -4,6 +4,9 @@ class ApplicationController < ActionController::API
include Pundit include Pundit
include PublicActivity::StoreController include PublicActivity::StoreController
# tracking user in papertrail
before_filter :set_paper_trail_whodunnit
# Prevent CSRF attacks by raising an exception. # Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead. # For APIs, you may want to use :null_session instead.
# protect_from_forgery with: :null_session # protect_from_forgery with: :null_session
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment