Skip to content

Commit 7cf1d1e

Browse files
committed
Add AC::Helpers module to jbuilder for api only apps
1 parent 7c1a5f2 commit 7cf1d1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/jbuilder/railtie.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class Railtie < ::Rails::Railtie
1212
if app.config.respond_to?(:api_only) && app.config.api_only
1313
ActiveSupport.on_load :action_controller do
1414
include ActionView::Rendering
15+
include ActionController::Helpers
1516
end
1617
end
1718
end

0 commit comments

Comments
 (0)