#-- # Copyright (C) 2008 Dimitrij Denissenko # Please read LICENSE document for more information. #++ # Be sure to restart your webserver when you modify this file. # Uncomment below to force Rails into production mode # (Use only when you can't set environment variables through your web/app server) # ENV['RAILS_ENV'] = 'production' RETROSPECTIVA_VERSION = '1.1-DEV (503)' # Specifies gem version of Rails to use when vendor/rails is not present RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION # Load constants require File.join(File.dirname(__FILE__), 'constants') # Bootstrap the Rails environment, frameworks, and default configuration require File.join(File.dirname(__FILE__), 'boot') # Make sure Observers are NOT loaded automatically Rails::Initializer.class_eval { def load_observers; end } Rails::Initializer.run do |config| # Skip frameworks you're not going to use config.frameworks -= [ :action_resource ] # Add additional load paths for your own custom dirs config.load_paths += [ "#{RAILS_ROOT}/vendor/coderay-0.7.4/lib" ] # Force all environments to use the same logger level # (by default production uses :info, the others :debug) # config.log_level = :debug # Use the database for sessions instead of the file system # (create the session table with 'rake create_sessions_table') config.action_controller.session_store = :active_record_store # Your secret key for verifying cookie session data integrity. # If you change this key, all old sessions will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attacks. config.action_controller.session = { :session_key => '_retrospectiva_session', :secret => COOKIE_STORE_SESSION_SECRET } # Enable page/fragment caching by setting a file-based store # (remember to create the caching directory and make it readable to the application) config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache" # Activate observers that should always be running config.active_record.observers = :changeset_observer, :group_observer, :project_observer, :ticket_observer, :ticket_change_observer # Make Active Record use UTC-base instead of local time # config.active_record.default_timezone = :utc # Use Active Record's schema dumper instead of SQL when creating the test database # (enables use of different database adapters for development and test environments) config.active_record.schema_format = :ruby end