app/controllers/doorkeeper/application_metal_controller.rb



module Doorkeeper
  class ApplicationMetalController < ActionController::Metal
    MODULES = [
      ActionController::Instrumentation,
      AbstractController::Rendering,
      ActionController::Rendering,
      ActionController::Renderers::All,
      Helpers::Controller
    ].freeze

    MODULES.each do |mod|
      include mod
    end

    ActiveSupport.run_load_hooks(:doorkeeper_metal_controller, self)
  end
end