Class: Super::Configuration
- Inherits:
-
Object
- Object
- Super::Configuration
- Includes:
- ConfigurationLogic
- Defined in:
- lib/super/configuration.rb
Overview
Allows setting global configuration
“‘ruby Super.configuration do |c|
c.title = "My Admin Site"
end “‘
Defined Under Namespace
Modules: ConfigurationLogic
Instance Attribute Summary collapse
- #asset_handler ⇒ Object
- #controller_namespace ⇒ Object
- #index_resources_per_page ⇒ Object
- #route_namespace ⇒ Object
- #title ⇒ Object
Instance Method Summary collapse
- #path_parts(*parts) ⇒ Object private
Methods included from ConfigurationLogic
#configured?, included, #initialize
Instance Attribute Details
#asset_handler ⇒ Object
96 |
# File 'lib/super/configuration.rb', line 96 configure :asset_handler, default: -> { Super::Assets.auto } |
#controller_namespace ⇒ Object
92 |
# File 'lib/super/configuration.rb', line 92 configure :controller_namespace, default: "admin" |
#index_resources_per_page ⇒ Object
90 |
# File 'lib/super/configuration.rb', line 90 configure :index_resources_per_page, default: 20 |
#route_namespace ⇒ Object
94 |
# File 'lib/super/configuration.rb', line 94 configure :route_namespace, default: :admin, wrap: -> (val) { [val].flatten } |
#title ⇒ Object
88 |
# File 'lib/super/configuration.rb', line 88 configure :title |
Instance Method Details
#path_parts(*parts) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
99 100 101 |
# File 'lib/super/configuration.rb', line 99 def path_parts(*parts) route_namespace + parts end |