account creation on the fly!
[kwestie.git] / config / environment.rb
blob6ded870f81a3768669f958a56370170b19d0794b
1 # Be sure to restart your server when you modify this file
3 # Uncomment below to force Rails into production mode when
4 # you don't control web/app server and can't set it the proper way
5 # ENV['RAILS_ENV'] ||= 'production'
7 # Specifies gem version of Rails to use when vendor/rails is not present
8 RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION
10 # Bootstrap the Rails environment, frameworks, and default configuration
11 require File.join(File.dirname(__FILE__), 'boot')
13 Rails::Initializer.run do |config|
14   # Settings in config/environments/* take precedence over those specified here.
15   # Application configuration should go into files in config/initializers
16   # -- all .rb files in that directory are automatically loaded.
17   # See Rails::Configuration for more options.
19   # Skip frameworks you're not going to use (only works if using vendor/rails).
20   # To use Rails without a database, you must remove the Active Record framework
21   # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
23   # Only load the plugins named here, in the order given. By default, all plugins 
24   # in vendor/plugins are loaded in alphabetical order.
25   # :all can be used as a placeholder for all plugins not explicitly named
26   # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
28   # Add additional load paths for your own custom dirs
29   # config.load_paths += %W( #{RAILS_ROOT}/extras )
31   # Force all environments to use the same logger level
32   # (by default production uses :info, the others :debug)
33   # config.log_level = :debug
35   # Your secret key for verifying cookie session data integrity.
36   # If you change this key, all old sessions will become invalid!
37   # Make sure the secret is at least 30 characters and all random, 
38   # no regular words or you'll be exposed to dictionary attacks.
39   config.action_controller.session = {
40     :session_key => '_update-kwestie_session',
41     :secret      => 'c7140ed50892a48f308d8ed38f7c8fd983989cfaed0fdaf7596e143705e91893d7439af9428a68e66da78e2652c3ae8ed521f524ac30db3c0c07ee908687ba22'
42   }
44   # Use the database for sessions instead of the cookie-based default,
45   # which shouldn't be used to store highly confidential information
46   # (create the session table with 'rake db:sessions:create')
47   # config.action_controller.session_store = :active_record_store
49   # Use SQL instead of Active Record's schema dumper when creating the test database.
50   # This is necessary if your schema can't be completely dumped by the schema dumper,
51   # like if you have constraints or database-specific column types
52   # config.active_record.schema_format = :sql
54   # Activate observers that should always be running
55   # config.active_record.observers = :cacher, :garbage_collector
56   config.active_record.observers = :user_observer, :issue_observer
58   # Make Active Record use UTC-base instead of local time
59   config.active_record.default_timezone = :utc
60 end
62 # Include your application configuration below
64 # http://www.practicalecommerce.com/blogs/developers-diary/archives/96
65 Time::DATE_FORMATS[:default] = "%b-%e-%Y"
66 Time::DATE_FORMATS[:uformats] = "%Y%m%d"
67 Time::DATE_FORMATS[:year] = "%Y"
68 Time::DATE_FORMATS[:month] = "%B, %Y"
69 Time::DATE_FORMATS[:day] = "%B %d, %Y"