Class: Granite::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/granite/config.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#base_controllerObject

Returns the value of attribute base_controller.



8
9
10
# File 'lib/granite/config.rb', line 8

def base_controller
  @base_controller
end

#precondition_namespacesObject



15
16
17
# File 'lib/granite/config.rb', line 15

def precondition_namespaces
  @precondition_namespaces ||= %w[Granite::Action::Preconditions]
end

Class Method Details

.delegatedObject



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_classObject



11
12
13
# File 'lib/granite/config.rb', line 11

def base_controller_class
  base_controller&.constantize || ActionController::Base
end