Skip to content

Commit

Permalink
Actually fix NoMethodError around api_oply in railtie
Browse files Browse the repository at this point in the history
  • Loading branch information
rwz committed May 18, 2015
1 parent 2a63cc1 commit b08d1da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jbuilder/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Railtie < ::Rails::Railtie
require 'jbuilder/dependency_tracker'
end

if app.config.try(:api_only)
if app.config.respond_to?(:api_only) && app.config.api_only
ActiveSupport.on_load :action_controller do
include ActionView::Rendering
end
Expand Down

0 comments on commit b08d1da

Please sign in to comment.