Skip to content

Commit b08d1da

Browse files
committed
Actually fix NoMethodError around api_oply in railtie
1 parent 2a63cc1 commit b08d1da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jbuilder/railtie.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Railtie < ::Rails::Railtie
99
require 'jbuilder/dependency_tracker'
1010
end
1111

12-
if app.config.try(:api_only)
12+
if app.config.respond_to?(:api_only) && app.config.api_only
1313
ActiveSupport.on_load :action_controller do
1414
include ActionView::Rendering
1515
end

0 commit comments

Comments
 (0)