mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 13:15:40 +02:00
Supply PaperTrail with current user
This commit is contained in:
parent
7a054ca893
commit
f6ad22156e
4 changed files with 10 additions and 2 deletions
|
@ -31,5 +31,9 @@ module Admin
|
|||
def after_sign_out_path_for(resource_or_scope)
|
||||
new_admin_user_session_path
|
||||
end
|
||||
|
||||
def user_for_paper_trail
|
||||
current_admin_user ? current_admin_user.id_role_username : 'guest'
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue