From 356702d3c03204067517f1de85fb3cec54e8990b Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Cabral da Cunha Date: Tue, 27 Mar 2018 16:10:49 -0300 Subject: [PATCH] #248 the new version of paper_trail gem requires that an before_action be added to application_controller. This allows the user who caused the event to be added in the versions table --- app/controllers/application_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index e324ac51..086fb916 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -13,6 +13,7 @@ class ApplicationController < ActionController::Base before_action :authenticate_user! before_action :parse_date + before_action :set_paper_trail_whodunnit clear_helpers