Class: PrxAuth::Rails::Configuration
- Inherits:
-
Object
- Object
- PrxAuth::Rails::Configuration
- Defined in:
- lib/prx_auth/rails/configuration.rb
Instance Attribute Summary collapse
-
#install_middleware ⇒ Object
Returns the value of attribute install_middleware.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/prx_auth/rails/configuration.rb', line 4 def initialize @install_middleware = true if defined?(::Rails) klass = ::Rails.application.class klass_name = if klass.parent_name.present? klass.parent_name else klass.name end @namespace = klass_name.underscore.intern end end |
Instance Attribute Details
#install_middleware ⇒ Object
Returns the value of attribute install_middleware.
2 3 4 |
# File 'lib/prx_auth/rails/configuration.rb', line 2 def install_middleware @install_middleware end |
#namespace ⇒ Object
Returns the value of attribute namespace.
2 3 4 |
# File 'lib/prx_auth/rails/configuration.rb', line 2 def namespace @namespace end |