Skip to content

Commit ce9bfec

Browse files
Update lib/jbuilder/railtie.rb
Co-authored-by: Rafael Mendonça França <[email protected]>
1 parent 0409614 commit ce9bfec

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/jbuilder/railtie.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ module ApiRendering
1515
end
1616
end
1717

18-
ActiveSupport.on_load :action_controller do
19-
if name == 'ActionController::API'
20-
include ActionController::Helpers
21-
include ActionController::ImplicitRender
22-
end
18+
ActiveSupport.on_load :action_controller_api do
19+
include ActionController::Helpers
20+
include ActionController::ImplicitRender
2321
end
2422
end
2523

0 commit comments

Comments
 (0)