We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b149f5 commit 8c2b906Copy full SHA for 8c2b906
1 file changed
sentry-rails/spec/dummy/test_rails_app/config/applications/rails-latest.rb
@@ -43,6 +43,15 @@ def cleanup!
43
ActiveSupport.filter_parameters.clear
44
end
45
46
+ # Re-initialising the app triggers the active_job.custom_serializers
47
+ # initializer which calls add_serializers(app.config.active_job.custom_serializers).
48
+ # Under some Rails/Ruby combinations custom_serializers resolves to nil instead
49
+ # of the railtie default of [], inserting nil into the global serializers Set.
50
+ # Remove it here so it does not outlive this app instance.
51
+ if defined?(::ActiveJob::Serializers)
52
+ ::ActiveJob::Serializers._additional_serializers.delete(nil)
53
+ end
54
+
55
super
56
57
0 commit comments