rails-api / active_model_serializers

ActiveModel::Serializer implementation and Rails hooks
MIT License
5.32k stars 1.39k forks source link

[0.9 stable] Avoid loading ActionController::TestCase in production #2464

Closed casperisfine closed 2 months ago

casperisfine commented 2 months ago

Ref: https://github.com/Shopify/active_model_serializers/pull/3

By referencing that object, it brings in all of the patches defined in ActionController::TestCase to the development and production environment, including behaviours like disabling the threading implementation of ActionController::Live

Extracted from: https://github.com/rails-api/active_model_serializers/pull/2461

cc @bf4