mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Include ControllerSupport on ActiveSupport on_load action_controller
This commit is contained in:
parent
070d58eacf
commit
7356071ea0
@ -60,4 +60,6 @@ ActionController::Renderers.add :jsonapi do |json, options|
|
|||||||
self.response_body = json
|
self.response_body = json
|
||||||
end
|
end
|
||||||
|
|
||||||
ActionController::Base.send :include, ActiveModelSerializers::Jsonapi::ControllerSupport
|
ActiveSupport.on_load(:action_controller) do
|
||||||
|
include ActiveModelSerializers::Jsonapi::ControllerSupport
|
||||||
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user