Skip to content

Commit

Permalink
Add AC::Helpers module to jbuilder for api only apps
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Jun 4, 2015
1 parent 7c1a5f2 commit 7cf1d1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/jbuilder/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Railtie < ::Rails::Railtie
if app.config.respond_to?(:api_only) && app.config.api_only
ActiveSupport.on_load :action_controller do
include ActionView::Rendering
include ActionController::Helpers
end
end
end
Expand Down

0 comments on commit 7cf1d1e

Please sign in to comment.