Class: Granite::Config
- Inherits:
-
Object
- Object
- Granite::Config
- Includes:
- Singleton
- Defined in:
- lib/granite/config.rb
Instance Attribute Summary collapse
-
#base_controller ⇒ Object
Returns the value of attribute base_controller.
- #precondition_namespaces ⇒ Object
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#base_controller ⇒ Object
Returns the value of attribute base_controller.
8 9 10 |
# File 'lib/granite/config.rb', line 8 def base_controller @base_controller end |
#precondition_namespaces ⇒ Object
15 16 17 |
# File 'lib/granite/config.rb', line 15 def precondition_namespaces @precondition_namespaces ||= %w[Granite::Action::Preconditions] end |
Class Method Details
.delegated ⇒ Object
19 20 21 |
# File 'lib/granite/config.rb', line 19 def self.delegated public_instance_methods - superclass.public_instance_methods - Singleton.public_instance_methods end |
Instance Method Details
#base_controller_class ⇒ Object
11 12 13 |
# File 'lib/granite/config.rb', line 11 def base_controller_class base_controller&.constantize || ActionController::Base end |