We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ec4e5f commit 639efefCopy full SHA for 639efef
1 file changed
app/views/layouts/application.html.erb
@@ -31,7 +31,9 @@
31
environment: '<%= Rails.env %>',
32
release: '<%= ENV['BUILD_HASH'] %>'
33
});
34
- Sentry.setUser({ id: <%= current_user&.id.to_json %> });
+ Sentry.configureScope(function (scope) {
35
+ scope.setUser({ id: <%= current_user&.id.to_json %> });
36
+ });
37
</script>
38
<% end %>
39
0 commit comments