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 070d58e commit 7356071Copy full SHA for 7356071
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