Sha256: d62fe7ed9d49ee0787961e00d190a730864f1fecbadb671bf26991281a722c46
Contents?: true
Size: 418 Bytes
Versions: 1
Compression:
Stored size: 418 Bytes
Contents
# frozen_string_literal: true module ApiDocServer class ApplicationController < ActionController::Base protect_from_forgery with: :exception layout 'layouts/swagger' if ApiDocServer.configuration.authentication_proc before_action :authenticate_admin protected def authenticate_admin instance_exec(&ApiDocServer.configuration.authentication_proc) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
api_doc_server-1.0.1 | app/controllers/api_doc_server/application_controller.rb |