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 705d1d6
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_config) && app.config.api_only

This comment has been minimized.

Copy link
@brettfishman

brettfishman May 18, 2015

Sorry, but did you mean

app.config.respond_to?(:api_only)

not

app.config.respond_to?(:api_config)

?

This comment has been minimized.

Copy link
@rwz

rwz May 18, 2015

Author Collaborator

Lol. You're right. Definitely not my day. :(

This comment has been minimized.

Copy link
@brettfishman

brettfishman May 18, 2015

Ha, no prob. We've all had 'em.

ActiveSupport.on_load :action_controller do
include ActionView::Rendering
end
Expand Down

0 comments on commit 705d1d6

Please sign in to comment.