Sha256: 47f6f3ef9acbee9e3690574f0dbc2779a308cbfd44d9e6b06c4338402cbdfd91

Contents?: true

Size: 731 Bytes

Versions: 11

Compression:

Stored size: 731 Bytes

Contents

class PrxAuth::Rails::Configuration
  attr_accessor :install_middleware,
                :namespace,
                :prx_client_id,
                :id_host


  def initialize
    @install_middleware = true
    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

      @namespace = klass_name.underscore.intern
      @prx_client_id = nil
      @id_host = nil
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
prx_auth-rails-3.0.1 lib/prx_auth/rails/configuration.rb
prx_auth-rails-3.0.0 lib/prx_auth/rails/configuration.rb
prx_auth-rails-2.1.0 lib/prx_auth/rails/configuration.rb
prx_auth-rails-2.0.0 lib/prx_auth/rails/configuration.rb
prx_auth-rails-1.8.0 lib/prx_auth/rails/configuration.rb
prx_auth-rails-1.7.0 lib/prx_auth/rails/configuration.rb
prx_auth-rails-1.6.0 lib/prx_auth/rails/configuration.rb
prx_auth-rails-1.5.0 lib/prx_auth/rails/configuration.rb
prx_auth-rails-1.4.1 lib/prx_auth/rails/configuration.rb
prx_auth-rails-1.4.0 lib/prx_auth/rails/configuration.rb
prx_auth-rails-1.3.0 lib/prx_auth/rails/configuration.rb