Class: SofaBlog::Configuration
- Inherits:
-
Object
- Object
- SofaBlog::Configuration
- Defined in:
- lib/sofa_blog/configuration.rb
Instance Attribute Summary collapse
-
#admin_controller ⇒ Object
Controller that should be used for admin area.
-
#admin_route_prefix ⇒ Object
Default url to access admin area is yourhost/cms-admin/ You can change ‘cms-admin’ to ‘admin’, for example.
-
#form_builder ⇒ Object
Form builder.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
Configuration defaults.
Constructor Details
#initialize ⇒ Configuration
Configuration defaults
14 15 16 17 18 |
# File 'lib/sofa_blog/configuration.rb', line 14 def initialize @admin_route_prefix = 'admin' @admin_controller = 'ApplicationController' @form_builder = 'SofaBlog::FormBuilder' end |
Instance Attribute Details
#admin_controller ⇒ Object
Controller that should be used for admin area
8 9 10 |
# File 'lib/sofa_blog/configuration.rb', line 8 def admin_controller @admin_controller end |
#admin_route_prefix ⇒ Object
Default url to access admin area is yourhost/cms-admin/ You can change ‘cms-admin’ to ‘admin’, for example.
5 6 7 |
# File 'lib/sofa_blog/configuration.rb', line 5 def admin_route_prefix @admin_route_prefix end |
#form_builder ⇒ Object
Form builder
11 12 13 |
# File 'lib/sofa_blog/configuration.rb', line 11 def form_builder @form_builder end |