##// END OF EJS Templates
Reverts r1903....
Jean-Philippe Lang -
r1902:0177f732a2c6
parent child
Show More
@@ -1,59 +1,57
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.1.0' unless defined? RAILS_GEM_VERSION
8 RAILS_GEM_VERSION = '2.1.0' unless defined? RAILS_GEM_VERSION
9
9
10 # Bootstrap the Rails environment, frameworks, and default configuration
10 # Bootstrap the Rails environment, frameworks, and default configuration
11 require File.join(File.dirname(__FILE__), 'boot')
11 require File.join(File.dirname(__FILE__), 'boot')
12
12
13 # Load Engine plugin if available
13 # Load Engine plugin if available
14 begin
14 begin
15 require File.join(File.dirname(__FILE__), '../vendor/plugins/engines/boot')
15 require File.join(File.dirname(__FILE__), '../vendor/plugins/engines/boot')
16 rescue LoadError
16 rescue LoadError
17 # Not available
17 # Not available
18 end
18 end
19
19
20 Rails::Initializer.run do |config|
20 Rails::Initializer.run do |config|
21 # Settings in config/environments/* take precedence those specified here
21 # Settings in config/environments/* take precedence those specified here
22
22
23 # Skip frameworks you're not going to use
23 # Skip frameworks you're not going to use
24 # config.frameworks -= [ :action_web_service, :action_mailer ]
24 # config.frameworks -= [ :action_web_service, :action_mailer ]
25
25
26 # Add additional load paths for sweepers
26 # Add additional load paths for sweepers
27 config.load_paths += %W( #{RAILS_ROOT}/app/sweepers )
27 config.load_paths += %W( #{RAILS_ROOT}/app/sweepers )
28
28
29 # Force all environments to use the same logger level
29 # Force all environments to use the same logger level
30 # (by default production uses :info, the others :debug)
30 # (by default production uses :info, the others :debug)
31 # config.log_level = :debug
31 # config.log_level = :debug
32
32
33 # Use the database for sessions instead of the file system
33 # Use the database for sessions instead of the file system
34 # (create the session table with 'rake db:sessions:create')
34 # (create the session table with 'rake db:sessions:create')
35 # config.action_controller.session_store = :active_record_store
35 # config.action_controller.session_store = :active_record_store
36 config.action_controller.session_store = :PStore
36 config.action_controller.session_store = :PStore
37
37
38 # Enable page/fragment caching by setting a file-based store
38 # Enable page/fragment caching by setting a file-based store
39 # (remember to create the caching directory and make it readable to the application)
39 # (remember to create the caching directory and make it readable to the application)
40 # config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/cache"
40 # config.action_controller.fragment_cache_store = :file_store, "#{RAILS_ROOT}/cache"
41
41
42 # Activate observers that should always be running
42 # Activate observers that should always be running
43 # config.active_record.observers = :cacher, :garbage_collector
43 # config.active_record.observers = :cacher, :garbage_collector
44 config.active_record.observers = :message_observer
44 config.active_record.observers = :message_observer
45
45
46 # Make Active Record use UTC-base instead of local time
46 # Make Active Record use UTC-base instead of local time
47 # config.active_record.default_timezone = :utc
47 # config.active_record.default_timezone = :utc
48
48
49 # Use Active Record's schema dumper instead of SQL when creating the test database
49 # Use Active Record's schema dumper instead of SQL when creating the test database
50 # (enables use of different database adapters for development and test environments)
50 # (enables use of different database adapters for development and test environments)
51 # config.active_record.schema_format = :ruby
51 # config.active_record.schema_format = :ruby
52
52
53 # Deliveries are disabled by default. Do NOT modify this section.
53 # Deliveries are disabled by default. Do NOT modify this section.
54 # Define your email configuration in email.yml instead.
54 # Define your email configuration in email.yml instead.
55 # It will automatically turn deliveries on
55 # It will automatically turn deliveries on
56 config.action_mailer.perform_deliveries = false
56 config.action_mailer.perform_deliveries = false
57 end
57 end
58
59 ActionController::AbstractRequest.relative_url_root = "/rdm"
General Comments 0
You need to be logged in to leave comments. Login now