Module: Mack::Configuration
- Defined in:
- lib/initialization/configuration.rb
Overview
All configuration for the Mack subsystem happens here. Each of the default environments, production, development, and test have their own default configuration options. These get merged with overall default options.
Constant Summary collapse
- DEFAULTS_DEVELOPMENT =
use local memory and store stuff for 5 minutes:
{ "mack::cache_classes" => false, "log::level" => "debug", "log::console" => true, }
- DEFAULTS_TEST =
use local memory and store stuff for 1 hour:
{ "log::level" => "error", "run_remote_tests" => true, "mack::drb_timeout" => 0 }
- DEFAULTS =
{ "mack::render_url_timeout" => 5, "mack::cache_classes" => true, "mack::use_lint" => true, "mack::show_exceptions" => true, "mack::session_id" => "_mack_session_id", "mack::rendering_systems" => [:action, :text, :partial, :public, :url, :xml], "mack::cookie_values" => { "path" => "/" }, "cachetastic_default_options" => { "debug" => false, "adapter" => "local_memory", "expiry_time" => 300, "logging" => { "logger_1" => { "type" => "file", "file" => File.join(MACK_ROOT, "log", "cachetastic.log") } } }, "mack::site_domain" => "http://localhost:3000", "mack::use_distributed_routes" => false, "mack::distributed_app_name" => nil, "mack::distributed_site_domain" => "http://localhost:3000", "mack::drb_timeout" => 1, "log::detailed_requests" => true, "log::level" => "info", "log::console" => false, "log::file" => true, "log::console_format" => "%l:\t[%d]\t%M", "log::file_format" => "%l:\t[%d]\t%M" }.merge(eval("DEFAULTS_#{MACK_ENV.upcase}"))