Class: SofaGallery::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_controllerObject

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_prefixObject

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_builderObject

Form builder



15
16
17
# File 'lib/sofa_gallery/configuration.rb', line 15

def form_builder
  @form_builder
end

#upload_optionsObject

Paperclip upload settings for photos



5
6
7
# File 'lib/sofa_gallery/configuration.rb', line 5

def upload_options
  @upload_options
end