Chris@0: # Be sure to restart your web server when you modify this file. Chris@0: Chris@0: # Uncomment below to force Rails into production mode when Chris@0: # you don't control web/app server and can't set it the proper way Chris@0: # ENV['RAILS_ENV'] ||= 'production' Chris@0: Chris@0: # Specifies gem version of Rails to use when vendor/rails is not present Chris@245: RAILS_GEM_VERSION = '2.3.11' unless defined? RAILS_GEM_VERSION Chris@0: Chris@0: # Bootstrap the Rails environment, frameworks, and default configuration Chris@0: require File.join(File.dirname(__FILE__), 'boot') Chris@0: Chris@0: # Load Engine plugin if available Chris@0: begin Chris@0: require File.join(File.dirname(__FILE__), '../vendor/plugins/engines/boot') Chris@0: rescue LoadError Chris@0: # Not available Chris@0: end Chris@0: Chris@0: Rails::Initializer.run do |config| Chris@0: # Settings in config/environments/* take precedence those specified here Chris@0: Chris@0: # Skip frameworks you're not going to use Chris@0: # config.frameworks -= [ :action_web_service, :action_mailer ] Chris@0: Chris@0: # Add additional load paths for sweepers Chris@245: config.autoload_paths += %W( #{RAILS_ROOT}/app/sweepers ) Chris@0: Chris@0: # Force all environments to use the same logger level Chris@0: # (by default production uses :info, the others :debug) Chris@0: # config.log_level = :debug Chris@0: Chris@0: # Enable page/fragment caching by setting a file-based store Chris@0: # (remember to create the caching directory and make it readable to the application) Chris@0: # config.action_controller.cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache" Chris@0: Chris@0: # Activate observers that should always be running Chris@0: # config.active_record.observers = :cacher, :garbage_collector Chris@441: config.active_record.observers = :message_observer, :issue_observer, :journal_observer, :news_observer, :document_observer, :wiki_content_observer, :comment_observer Chris@0: Chris@0: # Make Active Record use UTC-base instead of local time Chris@0: # config.active_record.default_timezone = :utc Chris@0: Chris@0: # Use Active Record's schema dumper instead of SQL when creating the test database Chris@0: # (enables use of different database adapters for development and test environments) Chris@0: # config.active_record.schema_format = :ruby Chris@0: Chris@0: # Deliveries are disabled by default. Do NOT modify this section. Chris@210: # Define your email configuration in configuration.yml instead. Chris@0: # It will automatically turn deliveries on Chris@0: config.action_mailer.perform_deliveries = false Chris@0: Chris@0: config.gem 'rubytree', :lib => 'tree' Chris@210: config.gem 'coderay', :version => '~>0.9.7' Chris@0: Chris@0: # Load any local configuration that is kept out of source control Chris@0: # (e.g. gems, patches). Chris@0: if File.exists?(File.join(File.dirname(__FILE__), 'additional_environment.rb')) Chris@0: instance_eval File.read(File.join(File.dirname(__FILE__), 'additional_environment.rb')) Chris@0: end Chris@0: end