lib/jbuilder/railtie.rb in jbuilder-2.11.5 vs lib/jbuilder/railtie.rb in jbuilder-2.12.0

- old
+ new

@@ -4,21 +4,21 @@ class Jbuilder class Railtie < ::Rails::Railtie initializer :jbuilder do ActiveSupport.on_load :action_view do ActionView::Template.register_template_handler :jbuilder, JbuilderHandler - require 'jbuilder/dependency_tracker' + require 'jbuilder/jbuilder_dependency_tracker' end if Rails::VERSION::MAJOR >= 5 module ::ActionController module ApiRendering include ActionView::Rendering end end ActiveSupport.on_load :action_controller do - if self == ActionController::API + if name == 'ActionController::API' include ActionController::Helpers include ActionController::ImplicitRender end end end