Supply PaperTrail with current user

This commit is contained in:
Artur Beljajev 2018-07-13 23:13:58 +03:00
parent 7a054ca893
commit f6ad22156e
4 changed files with 10 additions and 2 deletions

View file

@ -178,5 +178,9 @@ class Registrar
def after_sign_out_path_for(resource_or_scope)
new_registrar_user_session_path
end
def user_for_paper_trail
current_registrar_user ? current_registrar_user.id_role_username : 'guest'
end
end
end