Supply PaperTrail with current user

This commit is contained in:
Artur Beljajev 2018-07-16 01:06:30 +03:00
parent 6f0c886236
commit f1cbdec8e7
3 changed files with 5 additions and 5 deletions

View file

@ -105,4 +105,8 @@ class Registrant::SessionsController < Devise::SessionsController
def after_sign_out_path_for(_resource_or_scope)
new_registrant_user_session_path
end
def user_for_paper_trail
current_registrant_user.present? ? current_registrant_user.id_role_username : 'guest'
end
end