Sha256: 6308206f970763da9342d30a59ff8811fc2c7ef89c24b326d8b996a2f2439c31
Contents?: true
Size: 830 Bytes
Versions: 3
Compression:
Stored size: 830 Bytes
Contents
class PrxAuth::Rails::Configuration attr_accessor :install_middleware, :namespace, :prx_client_id, :prx_scope, :id_host, :cert_path DEFAULT_ID_HOST = "id.prx.org" DEFAULT_CERT_PATH = "api/v1/certs" def initialize @install_middleware = true @prx_client_id = nil @prx_scope = nil @id_host = DEFAULT_ID_HOST @cert_path = DEFAULT_CERT_PATH # infer default namespace from app name @namespace = if defined?(::Rails) klass = ::Rails.application.class parent_name = if ::Rails::VERSION::MAJOR >= 6 klass.module_parent_name else klass.parent_name end klass_name = if parent_name.present? parent_name else klass.name end klass_name.underscore.intern end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
prx_auth-rails-4.3.0 | lib/prx_auth/rails/configuration.rb |
prx_auth-rails-4.2.1 | lib/prx_auth/rails/configuration.rb |
prx_auth-rails-4.2.0 | lib/prx_auth/rails/configuration.rb |