|
1 | 1 | # Be sure to restart your server when you modify this file
|
2 | 2 |
|
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' |
6 |
| - |
7 | 3 | # Specifies gem version of Rails to use when vendor/rails is not present
|
8 |
| -RAILS_GEM_VERSION = '2.2.2' unless defined? RAILS_GEM_VERSION |
| 4 | +RAILS_GEM_VERSION = '2.3.2' unless defined? RAILS_GEM_VERSION |
9 | 5 |
|
10 | 6 | # Bootstrap the Rails environment, frameworks, and default configuration
|
11 | 7 | require File.join(File.dirname(__FILE__), 'boot')
|
|
14 | 10 | # Settings in config/environments/* take precedence over those specified here.
|
15 | 11 | # Application configuration should go into files in config/initializers
|
16 | 12 | # -- all .rb files in that directory are automatically loaded.
|
17 |
| - # See Rails::Configuration for more options. |
18 |
| - |
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 ] |
22 |
| - |
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 ] |
27 | 13 |
|
28 | 14 | # Add additional load paths for your own custom dirs
|
29 | 15 | # config.load_paths += %W( #{RAILS_ROOT}/extras )
|
30 | 16 |
|
31 |
| - # Force all environments to use the same logger level |
32 |
| - # (by default production uses :info, the others :debug) |
33 |
| - # config.log_level = :debug |
34 |
| - |
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_store = :memory_store |
40 |
| - config.action_controller.session = { |
41 |
| - :session_key => '_enki_session', |
42 |
| - :secret => 'd9b13a4ed2cfce88d62a6765b99530fd5a984ac827aa9068bf893aff51233f486c5f57f83d537945fb89caf2cd8bd3f42a5c3bfc5adce818afe28fca0452b52b' |
43 |
| - } |
| 17 | + # Specify gems that this application depends on and have them installed with rake gems:install |
| 18 | + config.gem "RedCloth", :lib => "redcloth", :version => "~> 4.1.0" |
| 19 | + config.gem "ruby-openid", :lib => "openid", :version => "~> 2.1.0" |
| 20 | + config.gem "chronic", :version => "~> 0.2.0" |
| 21 | + config.gem "coderay", :version => "~> 0.8.0" |
| 22 | + config.gem "lesstile", :version => "~> 0.3" |
| 23 | + config.gem "mislav-will_paginate", :lib => "will_paginate", :version => "~> 2.3" |
44 | 24 |
|
45 |
| - # Use the database for sessions instead of the cookie-based default, |
46 |
| - # which shouldn't be used to store highly confidential information |
47 |
| - # (create the session table with 'rake db:sessions:create') |
48 |
| - config.action_controller.session_store = :active_record_store |
| 25 | + # Only load the plugins named here, in the order given (default is alphabetical). |
| 26 | + # :all can be used as a placeholder for all plugins not explicitly named |
| 27 | + # config.plugins = [ :exception_notification, :ssl_requirement, :all ] |
49 | 28 |
|
50 |
| - # Use SQL instead of Active Record's schema dumper when creating the test database. |
51 |
| - # This is necessary if your schema can't be completely dumped by the schema dumper, |
52 |
| - # like if you have constraints or database-specific column types |
53 |
| - # config.active_record.schema_format = :sql |
| 29 | + # Skip frameworks you're not going to use. To use Rails without a database, |
| 30 | + # you must remove the Active Record framework. |
| 31 | + # config.frameworks -= [ :active_record, :active_resource, :action_mailer ] |
54 | 32 |
|
55 | 33 | # Activate observers that should always be running
|
56 |
| - # config.active_record.observers = :cacher, :garbage_collector |
| 34 | + # config.active_record.observers = :cacher, :garbage_collector, :forum_observer |
57 | 35 |
|
58 |
| - # Make Active Record use UTC-base instead of local time |
59 |
| - # config.active_record.default_timezone = :utc |
| 36 | + # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. |
| 37 | + # Run "rake -D time" for a list of tasks for finding time zone names. |
| 38 | + config.time_zone = 'UTC' |
60 | 39 |
|
61 |
| - Dir.glob(File.join(RAILS_ROOT,'vendor','*','lib')).each do |dir| |
62 |
| - config.load_paths += [dir] |
63 |
| - end |
| 40 | + # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. |
| 41 | + # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')] |
| 42 | + # config.i18n.default_locale = :de |
64 | 43 | end
|
65 |
| - |
66 |
| -require 'lesstile' |
67 |
| -require 'coderay' |
68 |
| - |
69 |
| -require 'core_extensions/string' |
70 |
| -require 'core_extensions/object' |
71 |
| - |
72 |
| -require 'openid' |
73 |
| -require 'openid/store/filesystem' |
74 |
| -require 'openid/extensions/sreg' |
75 |
| - |
76 |
| -require 'chronic' |
0 commit comments