Class: SofaGallery::Configuration
- Inherits:
-
Object
- Object
- SofaGallery::Configuration
- Defined in:
- lib/sofa_gallery/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.
-
#upload_options ⇒ Object
Paperclip upload settings for photos.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
Configuration defaults.
Constructor Details
#initialize ⇒ Configuration
Configuration defaults
18 19 20 21 22 23 |
# File 'lib/sofa_gallery/configuration.rb', line 18 def initialize @upload_options = { } @admin_route_prefix = 'admin' @admin_controller = 'ApplicationController' @form_builder = 'SofaGallery::FormBuilder' end |
Instance Attribute Details
#admin_controller ⇒ Object
Controller that should be used for admin area
12 13 14 |
# File 'lib/sofa_gallery/configuration.rb', line 12 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.
9 10 11 |
# File 'lib/sofa_gallery/configuration.rb', line 9 def admin_route_prefix @admin_route_prefix end |
#form_builder ⇒ Object
Form builder
15 16 17 |
# File 'lib/sofa_gallery/configuration.rb', line 15 def form_builder @form_builder end |
#upload_options ⇒ Object
Paperclip upload settings for photos
5 6 7 |
# File 'lib/sofa_gallery/configuration.rb', line 5 def @upload_options end |