mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 04:37:30 +02:00
Supply PaperTrail with current user
This commit is contained in:
parent
6f0c886236
commit
f1cbdec8e7
3 changed files with 5 additions and 5 deletions
|
@ -32,8 +32,4 @@ class ApplicationController < ActionController::Base
|
|||
def available_languages
|
||||
{ en: 'English', et: 'Estonian' }.invert
|
||||
end
|
||||
|
||||
def user_for_paper_trail
|
||||
current_user.present? ? current_user.id_role_username : 'public'
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue