X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=config%2Fenvironment.rb;h=3884979ce8b3ced0bed46cce5ff38474da6ac19d;hb=f64339ce335029afcf8ba9cbe7fc38da42443684;hp=bedc82cc08a5c1a78a9accb0a9b087c36209191f;hpb=cf29841dca2a4ba6313a99576d56e238b700a158;p=depot.git diff --git a/config/environment.rb b/config/environment.rb index bedc82c..3884979 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -5,7 +5,6 @@ # ENV['RAILS_ENV'] ||= 'production' # Specifies gem version of Rails to use when vendor/rails is not present -# RAILS_GEM_VERSION = '2.1.0' unless defined? RAILS_GEM_VERSION RAILS_GEM_VERSION = '2.2.2' unless defined? RAILS_GEM_VERSION # Bootstrap the Rails environment, frameworks, and default configuration @@ -23,8 +22,10 @@ Rails::Initializer.run do |config| # Specify gems that this application depends on. # They can then be installed with "rake gems:install" on new installations. + # You have to specify the :lib option for libraries, where the Gem name (sqlite3-ruby) differs from the file itself (sqlite3) # config.gem "bj" # config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net" + # config.gem "sqlite3-ruby", :lib => "sqlite3" # config.gem "aws-s3", :lib => "aws/s3" # Only load the plugins named here, in the order given. By default, all plugins @@ -41,16 +42,21 @@ Rails::Initializer.run do |config| # Make Time.zone default to the specified zone, and make Active Record store time values # in the database in UTC, and return them converted to the specified local zone. - # Run "rake -D time" for a list of tasks for finding time zone names. Uncomment to use default local time. + # Run "rake -D time" for a list of tasks for finding time zone names. Comment line to use default local time. config.time_zone = 'UTC' + # The internationalization framework can be changed to have another default locale (standard is :en) or more load paths. + # All files from config/locales/*.rb,yml are added automatically. + # config.i18n.load_path << Dir[File.join(RAILS_ROOT, 'my', 'locales', '*.{rb,yml}')] + # config.i18n.default_locale = :de + # 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 => '_depot_session', - :secret => 'bc60cc379c983430ff60909876a99802d983a8af4543a81fd86556a7eec3e8ec1197dc343ff1b86af79b5d30d0155b267c1dd9e5ee864f816254bbf8c3c20b69' + :secret => '85857e9647cd79624deed16baa3dfca210a27d35a6351c8712d97550affaec58ae5c9fc8551f9902dd0e35aaf6cfdd7450181eb3f2aafbeb832f501eb4506007' } # Use the database for sessions instead of the cookie-based default, @@ -64,5 +70,6 @@ Rails::Initializer.run do |config| # config.active_record.schema_format = :sql # Activate observers that should always be running - # config.active_record.observers = :cacher, :garbage_collector + # Please note that observers generated using script/generate observer need to have an _observer suffix + # config.active_record.observers = :cacher, :garbage_collector, :forum_observer end