File: environment.rb

package info (click to toggle)
liblocale-rails-ruby 2.0.5-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,224 kB
  • ctags: 295
  • sloc: ruby: 727; sh: 22; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 910 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Be sure to restart your server when you modify this file

# Uncomment below to force Rails into production mode when
# you don't control web/app server and can't set it the proper way
# ENV['RAILS_ENV'] ||= 'production'

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.3' unless defined? RAILS_GEM_VERSION

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')

Rails::Initializer.run do |config|
  config.time_zone = 'UTC'

  config.action_controller.session = {
    :session_key => '_rails_session',
    :secret      => '25fe1cb0e4295d9ede3b21864a1a3b589a4656bd0032fee8b8a470a93d221d4d666e9076a35bd0e4fd0fe8ca12eec9dc85f46554cd6e26b4569548b6ee03323a'
  }

  config.gem "locale"
  config.gem "locale_rails"
end

ActionController::Base.cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache"