Provide current-user application-wide
* This change allows us to reuse the current user in multiple places. * Sentry still receives the same information as before.
This commit is contained in:

committed by
Sebastian Serth

parent
50a4707f65
commit
33aa0cecba
@ -84,11 +84,12 @@ class User < ApplicationRecord
|
||||
displayname
|
||||
end
|
||||
|
||||
def to_sentry_context
|
||||
def to_page_context
|
||||
{
|
||||
id:,
|
||||
type: self.class.name,
|
||||
consumer: consumer.name,
|
||||
displayname:,
|
||||
}
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user