Skip to content

Commit 36ef8b6

Browse files
committed
Revert "Fix a bug of sentry"
This reverts commit 639efef.
1 parent 639efef commit 36ef8b6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/views/layouts/application.html.erb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@
3131
environment: '<%= Rails.env %>',
3232
release: '<%= ENV['BUILD_HASH'] %>'
3333
});
34-
Sentry.configureScope(function (scope) {
35-
scope.setUser({ id: <%= current_user&.id.to_json %> });
36-
});
34+
Sentry.setUser({ id: <%= current_user&.id.to_json %> });
3735
</script>
3836
<% end %>
3937

0 commit comments

Comments
 (0)