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.
2 parents 7fcac0c + 7356071 commit 9f59398Copy full SHA for 9f59398
lib/active_model_serializers/register_jsonapi_renderer.rb
@@ -60,4 +60,6 @@ def serialize_jsonapi(json, options)
60
self.response_body = json
61
end
62
63
-ActionController::Base.send :include, ActiveModelSerializers::Jsonapi::ControllerSupport
+ActiveSupport.on_load(:action_controller) do
64
+ include ActiveModelSerializers::Jsonapi::ControllerSupport
65
+end
0 commit comments