@@ -1,65 +1,65 | |||||
1 | # Be sure to restart your web server when you modify this file. |
|
1 | # Be sure to restart your web server when you modify this file. | |
2 |
|
2 | |||
3 | # Uncomment below to force Rails into production mode when |
|
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 |
|
4 | # you don't control web/app server and can't set it the proper way | |
5 | # ENV['RAILS_ENV'] ||= 'production' |
|
5 | # ENV['RAILS_ENV'] ||= 'production' | |
6 |
|
6 | |||
7 | # Specifies gem version of Rails to use when vendor/rails is not present |
|
7 | # Specifies gem version of Rails to use when vendor/rails is not present | |
8 | RAILS_GEM_VERSION = '2.3.14' unless defined? RAILS_GEM_VERSION |
|
8 | RAILS_GEM_VERSION = '2.3.14' unless defined? RAILS_GEM_VERSION | |
9 |
|
9 | |||
|
10 | # Bootstrap the Rails environment, frameworks, and default configuration | |||
|
11 | require File.join(File.dirname(__FILE__), 'boot') | |||
|
12 | ||||
10 | if RUBY_VERSION >= '1.9' && defined?(Rails) && Rails::VERSION::MAJOR < 3 |
|
13 | if RUBY_VERSION >= '1.9' && defined?(Rails) && Rails::VERSION::MAJOR < 3 | |
11 | Encoding.default_external = 'UTF-8' |
|
14 | Encoding.default_external = 'UTF-8' | |
12 | end |
|
15 | end | |
13 |
|
16 | |||
14 | # Bootstrap the Rails environment, frameworks, and default configuration |
|
|||
15 | require File.join(File.dirname(__FILE__), 'boot') |
|
|||
16 |
|
||||
17 | # Load Engine plugin if available |
|
17 | # Load Engine plugin if available | |
18 | begin |
|
18 | begin | |
19 | require File.join(File.dirname(__FILE__), '../vendor/plugins/engines/boot') |
|
19 | require File.join(File.dirname(__FILE__), '../vendor/plugins/engines/boot') | |
20 | rescue LoadError |
|
20 | rescue LoadError | |
21 | # Not available |
|
21 | # Not available | |
22 | end |
|
22 | end | |
23 |
|
23 | |||
24 | Rails::Initializer.run do |config| |
|
24 | Rails::Initializer.run do |config| | |
25 | # Settings in config/environments/* take precedence those specified here |
|
25 | # Settings in config/environments/* take precedence those specified here | |
26 |
|
26 | |||
27 | # Skip frameworks you're not going to use |
|
27 | # Skip frameworks you're not going to use | |
28 | # config.frameworks -= [ :action_web_service, :action_mailer ] |
|
28 | # config.frameworks -= [ :action_web_service, :action_mailer ] | |
29 |
|
29 | |||
30 | # Add additional load paths for sweepers |
|
30 | # Add additional load paths for sweepers | |
31 | config.autoload_paths += %W( #{RAILS_ROOT}/app/sweepers ) |
|
31 | config.autoload_paths += %W( #{RAILS_ROOT}/app/sweepers ) | |
32 |
|
32 | |||
33 | # Force all environments to use the same logger level |
|
33 | # Force all environments to use the same logger level | |
34 | # (by default production uses :info, the others :debug) |
|
34 | # (by default production uses :info, the others :debug) | |
35 | # config.log_level = :debug |
|
35 | # config.log_level = :debug | |
36 |
|
36 | |||
37 | # Enable page/fragment caching by setting a file-based store |
|
37 | # Enable page/fragment caching by setting a file-based store | |
38 | # (remember to create the caching directory and make it readable to the application) |
|
38 | # (remember to create the caching directory and make it readable to the application) | |
39 | # config.action_controller.cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache" |
|
39 | # config.action_controller.cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache" | |
40 |
|
40 | |||
41 | # Activate observers that should always be running |
|
41 | # Activate observers that should always be running | |
42 | # config.active_record.observers = :cacher, :garbage_collector |
|
42 | # config.active_record.observers = :cacher, :garbage_collector | |
43 | config.active_record.observers = :message_observer, :issue_observer, :journal_observer, :news_observer, :document_observer, :wiki_content_observer, :comment_observer |
|
43 | config.active_record.observers = :message_observer, :issue_observer, :journal_observer, :news_observer, :document_observer, :wiki_content_observer, :comment_observer | |
44 |
|
44 | |||
45 | # Make Active Record use UTC-base instead of local time |
|
45 | # Make Active Record use UTC-base instead of local time | |
46 | # config.active_record.default_timezone = :utc |
|
46 | # config.active_record.default_timezone = :utc | |
47 |
|
47 | |||
48 | # Use Active Record's schema dumper instead of SQL when creating the test database |
|
48 | # Use Active Record's schema dumper instead of SQL when creating the test database | |
49 | # (enables use of different database adapters for development and test environments) |
|
49 | # (enables use of different database adapters for development and test environments) | |
50 | # config.active_record.schema_format = :ruby |
|
50 | # config.active_record.schema_format = :ruby | |
51 |
|
51 | |||
52 | # Deliveries are disabled by default. Do NOT modify this section. |
|
52 | # Deliveries are disabled by default. Do NOT modify this section. | |
53 | # Define your email configuration in configuration.yml instead. |
|
53 | # Define your email configuration in configuration.yml instead. | |
54 | # It will automatically turn deliveries on |
|
54 | # It will automatically turn deliveries on | |
55 | config.action_mailer.perform_deliveries = false |
|
55 | config.action_mailer.perform_deliveries = false | |
56 |
|
56 | |||
57 | config.gem 'coderay', :version => '~>1.0.0' |
|
57 | config.gem 'coderay', :version => '~>1.0.0' | |
58 | config.gem 'net-ldap', :version => '~>0.2.2' |
|
58 | config.gem 'net-ldap', :version => '~>0.2.2' | |
59 |
|
59 | |||
60 | # Load any local configuration that is kept out of source control |
|
60 | # Load any local configuration that is kept out of source control | |
61 | # (e.g. gems, patches). |
|
61 | # (e.g. gems, patches). | |
62 | if File.exists?(File.join(File.dirname(__FILE__), 'additional_environment.rb')) |
|
62 | if File.exists?(File.join(File.dirname(__FILE__), 'additional_environment.rb')) | |
63 | instance_eval File.read(File.join(File.dirname(__FILE__), 'additional_environment.rb')) |
|
63 | instance_eval File.read(File.join(File.dirname(__FILE__), 'additional_environment.rb')) | |
64 | end |
|
64 | end | |
65 | end |
|
65 | end |
General Comments 0
You need to be logged in to leave comments.
Login now