Class: Wallaby::Configuration
- Inherits:
-
Object
- Object
- Wallaby::Configuration
- Defined in:
- lib/wallaby/configuration.rb,
lib/wallaby/configuration/models.rb,
lib/wallaby/configuration/mapping.rb,
lib/wallaby/configuration/features.rb,
lib/wallaby/configuration/metadata.rb,
lib/wallaby/configuration/security.rb,
lib/wallaby/configuration/pagination.rb
Overview
Global configuration
Defined Under Namespace
Classes: Features, Mapping, Metadata, Models, Pagination, Security
Instance Attribute Summary collapse
-
#base_controller ⇒ Class
The controller that Wallaby should inherit from.
Instance Method Summary collapse
-
#clear ⇒ Object
Clear all configurations.
-
#features ⇒ Wallaby::Configuration::Features
Configuration for features.
-
#mapping ⇒ Wallaby::Configuration::Mapping
Configuration for Wallaby::Map.
-
#metadata ⇒ Wallaby::Configuration::Metadata
Configuration of metadata.
-
#models ⇒ Wallaby::Configuration::Models
A list of models that Wallaby should handle.
-
#models=(models) ⇒ Object
To configure the models that Wallaby should handle.
-
#pagination ⇒ Wallaby::Configuration::Pagination
Pagination configuration.
-
#security ⇒ Wallaby::Configuration::Security
Security configuration, mostly for authentication.
Instance Attribute Details
#base_controller ⇒ Class
9 10 11 |
# File 'lib/wallaby/configuration.rb', line 9 def base_controller @base_controller ||= ::ApplicationController end |
Instance Method Details
#clear ⇒ Object
Clear all configurations
55 56 57 58 |
# File 'lib/wallaby/configuration.rb', line 55 def clear @base_controller, @models, @security, @mapping, @pagination, , @features = [] end |
#features ⇒ Wallaby::Configuration::Features
49 50 51 |
# File 'lib/wallaby/configuration.rb', line 49 def features @features ||= Features.new end |
#mapping ⇒ Wallaby::Configuration::Mapping
34 35 36 |
# File 'lib/wallaby/configuration.rb', line 34 def mapping @mapping ||= Mapping.new end |
#metadata ⇒ Wallaby::Configuration::Metadata
39 40 41 |
# File 'lib/wallaby/configuration.rb', line 39 def ||= Metadata.new end |
#models ⇒ Wallaby::Configuration::Models
Returns a list of models that Wallaby should handle.
16 17 18 |
# File 'lib/wallaby/configuration.rb', line 16 def models @models ||= Models.new end |
#models=(models) ⇒ Object
To configure the models that Wallaby should handle
22 23 24 |
# File 'lib/wallaby/configuration.rb', line 22 def models=(models) self.models.set models end |
#pagination ⇒ Wallaby::Configuration::Pagination
44 45 46 |
# File 'lib/wallaby/configuration.rb', line 44 def pagination @pagination ||= Pagination.new end |
#security ⇒ Wallaby::Configuration::Security
28 29 30 |
# File 'lib/wallaby/configuration.rb', line 28 def security @security ||= Security.new end |