Sha256: 4bde547f2a20c1dc6c16a5175ffc3898d2cc6c9499ef2509ed2fd367a085db16
Contents?: true
Size: 605 Bytes
Versions: 5
Compression:
Stored size: 605 Bytes
Contents
# frozen_string_literal: true module Doorkeeper class ApplicationMetalController < ActionController::Metal MODULES = [ ActionController::Instrumentation, AbstractController::Rendering, ActionController::Rendering, ActionController::Renderers::All, AbstractController::Callbacks, Helpers::Controller ].freeze MODULES.each do |mod| include mod end before_action :enforce_content_type, if: -> { Doorkeeper.configuration.enforce_content_type } ActiveSupport.run_load_hooks(:doorkeeper_metal_controller, self) end end
Version data entries
5 entries across 5 versions & 1 rubygems