Class: ComfyCarousel::Configuration
- Inherits:
-
Object
- Object
- ComfyCarousel::Configuration
- Defined in:
- lib/comfy_carousel/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/comfy_carousel/configuration.rb', line 18 def initialize @admin_route_prefix = 'admin' @admin_controller = 'ApplicationController' @form_builder = 'ComfyCarousel::FormBuilder' @upload_options = { } end |
Instance Attribute Details
#admin_controller ⇒ Object
Controller that should be used for admin area
9 10 11 |
# File 'lib/comfy_carousel/configuration.rb', line 9 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.
6 7 8 |
# File 'lib/comfy_carousel/configuration.rb', line 6 def admin_route_prefix @admin_route_prefix end |
#form_builder ⇒ Object
Form builder
12 13 14 |
# File 'lib/comfy_carousel/configuration.rb', line 12 def form_builder @form_builder end |
#upload_options ⇒ Object
Paperclip upload settings for photos
15 16 17 |
# File 'lib/comfy_carousel/configuration.rb', line 15 def @upload_options end |