Class: SofaBlog::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/sofa_blog/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_controllerObject

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_prefixObject

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_builderObject

Form builder



11
12
13
# File 'lib/sofa_blog/configuration.rb', line 11

def form_builder
  @form_builder
end