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 c6bda15 + 96a8a39 commit cac0dfeCopy full SHA for cac0dfe
lib/jbuilder/railtie.rb
@@ -16,11 +16,9 @@ module ApiRendering
16
end
17
18
19
- ActiveSupport.on_load :action_controller do
20
- if self == ActionController::API
21
- include ActionController::Helpers
22
- include ActionController::ImplicitRender
23
- end
+ ActiveSupport.on_load :action_controller_api do
+ include ActionController::Helpers
+ include ActionController::ImplicitRender
24
25
26
0 commit comments