Sha256: eb2286ca5072cf4a3d1aa82e9ca89848b4fa50647f2946807963dae802d10492

Contents?: true

Size: 1.28 KB

Versions: 4

Compression:

Stored size: 1.28 KB

Contents

class ComfortableMexicanSofa::Configuration
  
  # Don't like Comfortable Mexican Sofa? Set it to whatever you like. :(
  attr_accessor :cms_title
  
  # Module that will handle authentication to access cms-admin area
  attr_accessor :authentication
  
  # Location of YAML files that can be used to render pages instead of pulling
  # data from the database. Not active if not specified.
  attr_accessor :seed_data_path
  
  # 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
  
  # /cms-admin redirects to /cms-admin/pages but you can change it
  # to something else
  attr_accessor :admin_route_redirect
  
  # Let CMS handle site creation and management. Enabled by default.
  attr_accessor :auto_manage_sites
  
  # Not allowing irb code to be run inside page content. True by default.
  attr_accessor :disable_irb
  
  # Configuration defaults
  def initialize
    @cms_title            = 'ComfortableMexicanSofa MicroCMS'
    @authentication       = 'ComfortableMexicanSofa::HttpAuth'
    @seed_data_path       = nil
    @admin_route_prefix   = 'cms-admin'
    @admin_route_redirect = "/#{@admin_route_prefix}/pages"
    @auto_manage_sites    = true
    @disable_irb          = true
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.0.45 lib/comfortable_mexican_sofa/configuration.rb
comfortable_mexican_sofa-1.0.44 lib/comfortable_mexican_sofa/configuration.rb
comfortable_mexican_sofa-1.0.43 lib/comfortable_mexican_sofa/configuration.rb
comfortable_mexican_sofa-1.0.42 lib/comfortable_mexican_sofa/configuration.rb