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 0409614 commit ce9bfecCopy full SHA for ce9bfec
lib/jbuilder/railtie.rb
@@ -15,11 +15,9 @@ module ApiRendering
15
end
16
17
18
- ActiveSupport.on_load :action_controller do
19
- if name == 'ActionController::API'
20
- include ActionController::Helpers
21
- include ActionController::ImplicitRender
22
- end
+ ActiveSupport.on_load :action_controller_api do
+ include ActionController::Helpers
+ include ActionController::ImplicitRender
23
24
25
0 commit comments