Set PaperTrail :whodunnit for all Registrar-related controllers

This commit is contained in:
Karl Erik Õunapuu 2020-08-03 17:45:17 +03:00
parent 8d3fc07754
commit a56dc03565
2 changed files with 2 additions and 0 deletions

View file

@ -20,6 +20,7 @@ module Epp
rescue_from StandardError, with: :respond_with_command_failed_error
rescue_from AuthorizationError, with: :respond_with_authorization_error
rescue_from ActiveRecord::RecordNotFound, with: :respond_with_object_does_not_exist_error
before_action :set_paper_trail_whodunnit
protected

View file

@ -6,6 +6,7 @@ class Registrar
before_action :check_ip_restriction
helper_method :depp_controller?
helper_method :head_title_sufix
before_action :set_paper_trail_whodunnit
protected