Skip to content

Commit

Permalink
#248 the new version of paper_trail gem requires that an before_actio…
Browse files Browse the repository at this point in the history
…n be added to application_controller. This allows the user who caused the event to be added in the versions table
  • Loading branch information
Carlos-Eduardo-Cabral-da-Cunha committed Mar 27, 2018
1 parent 8135667 commit 356702d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class ApplicationController < ActionController::Base

before_action :authenticate_user!
before_action :parse_date
before_action :set_paper_trail_whodunnit

clear_helpers

Expand Down

0 comments on commit 356702d

Please sign in to comment.