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