Sha256: 0583b2b680b2f605d43ca991f1493e66194ff26b2c536513ebb0f4013aaec199

Contents?: true

Size: 691 Bytes

Versions: 6

Compression:

Stored size: 691 Bytes

Contents

module SofaGallery
  class Configuration
    
    # Paperclip upload settings for photos
    attr_accessor :upload_options
  
    # Default url to access admin area is http://yourhost/cms-admin/ 
    # You can change 'cms-admin' to 'admin', for example.
    attr_accessor :admin_route_prefix
    
    # Controller that should be used for admin area
    attr_accessor :admin_controller
    
    # Form builder
    attr_accessor :form_builder
    
    # Configuration defaults
    def initialize
      @upload_options     = { }
      @admin_route_prefix = 'admin'
      @admin_controller   = 'ApplicationController'
      @form_builder       = 'SofaGallery::FormBuilder'
    end
    
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sofa_gallery-0.0.6 lib/sofa_gallery/configuration.rb
sofa_gallery-0.0.5 lib/sofa_gallery/configuration.rb
sofa_gallery-0.0.4 lib/sofa_gallery/configuration.rb
sofa_gallery-0.0.3 lib/sofa_gallery/configuration.rb
sofa_gallery-0.0.2 lib/sofa_gallery/configuration.rb
sofa_gallery-0.0.1 lib/sofa_gallery/configuration.rb