My favorites | Sign in
Project Logo
                
Search
for
Updated Jun 30, 2007 by darthapo
Labels: Featured
ConfigurationSettings  
All of the configuration options for Comatose and their default values.

Default Configuration

Following is a configuration block that shows all of the supported settings and their defaults:

Comatose.configure do |config|

  config.admin_title          = 'Comatose'
  config.admin_includes       = []
  config.admin_helpers        = []
  config.admin_sub_title      = 'The Micro CMS'
  config.content_type         = 'utf-8'
  config.default_filter       = 'Textile'
  config.default_processor    = :liquid
  config.default_tree_level   = 2
  config.disable_caching      = false
  config.hidden_meta_fields   = []
  config.helpers              = []
  config.includes             = []

  # These are 'blockable' settings
  config.authorization        = Proc.new { true }
  config.admin_authorization  = Proc.new { true }
  config.admin_get_author     = Proc.new { request.env['REMOTE_ADDR'] }
  config.admin_get_root_page  = Proc.new { Comatose::Page.root }
  config.after_setup          = Proc.new { true }

end

Comment by tamerhelmysalama, Sep 11, 2007

If Using Authentication, this will enable application session key to be shared by comatose

ActionController::Base.session_options[:session_key] = '_my_unique_app_session_id'

Sign in to add a comment
Hosted by Google Code