public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Even more polish of the default configration files and split off the session 
store configuration into its own file
dhh (author)
Sun Nov 30 13:53:21 -0800 2008
commit  6e66e7d6460b99bb0877a891aa3fbb789b563123
tree    7a847f0a1f9831bf7cc1e8cbafb0af221b4b363e
parent  c5f461d7b0b8f5ee0021c78a80525c0594864c68
...
12
13
14
15
 
16
17
18
...
28
29
30
31
32
33
 
 
 
 
 
34
35
36
37
 
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
 
63
...
12
13
14
 
15
16
17
18
...
28
29
30
 
 
 
31
32
33
34
35
36
37
 
 
38
39
40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
42
0
@@ -12,7 +12,7 @@ Rails::Initializer.run do |config|
0
   # -- all .rb files in that directory are automatically loaded.
0
 
0
   # Add additional load paths for your own custom dirs
0
-  # config.load_paths += %W( #{RAILS_ROOT}/extras )
1
+  # config.load_paths += %w( #{RAILS_ROOT}/extras )
0
 
0
   # Specify gems that this application depends on and have them installed with rake gems:install
0
   # config.gem "bj"
0
@@ -28,35 +28,14 @@ Rails::Initializer.run do |config|
0
   # you must remove the Active Record framework.
0
   # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
0
 
0
-  # Make Time.zone default to the specified zone, and make Active Record store time values
0
-  # in the database in UTC, and return them converted to the specified local zone.
0
-  # Run "rake -D time" for a list of tasks for finding time zone names. Comment line to use default local time.
0
+  # Activate observers that should always be running
0
+  # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
0
+
0
+  # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
0
+  # Run "rake -D time" for a list of tasks for finding time zone names.
0
   config.time_zone = 'UTC'
0
 
0
-  # The internationalization framework can be changed to have another default locale (default is :en) or more load paths.
0
-  # All files from config/locales/*.rb,yml are added automatically.
0
+  # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
1
   # config.i18n.load_path << Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
0
   # config.i18n.default_locale = :de
0
-
0
-  # Your secret key for verifying cookie session data integrity.
0
-  # If you change this key, all old sessions will become invalid!
0
-  # Make sure the secret is at least 30 characters and all random, 
0
-  # no regular words or you'll be exposed to dictionary attacks.
0
-  config.action_controller.session = {
0
-    :session_key => '_<%= app_name %>_session',
0
-    :secret      => '<%= app_secret %>'
0
-  }
0
-
0
-  # Use the database for sessions instead of the cookie-based default,
0
-  # which shouldn't be used to store highly confidential information
0
-  # (create the session table with "rake db:sessions:create")
0
-  # config.action_controller.session_store = :active_record_store
0
-
0
-  # Use SQL instead of Active Record's schema dumper when creating the test database.
0
-  # This is necessary if your schema can't be completely dumped by the schema dumper,
0
-  # like if you have constraints or database-specific column types
0
-  # config.active_record.schema_format = :sql
0
-
0
-  # Activate observers that should always be running
0
-  # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
0
-end
0
+end
0
\ No newline at end of file
...
20
21
22
 
 
 
 
 
23
...
20
21
22
23
24
25
26
27
28
0
@@ -20,3 +20,8 @@ config.action_controller.allow_forgery_protection    = false
0
 # The :test delivery method accumulates sent emails in the
0
 # ActionMailer::Base.deliveries array.
0
 config.action_mailer.delivery_method = :test
0
+
0
+# Use SQL instead of Active Record's schema dumper when creating the test database.
0
+# This is necessary if your schema can't be completely dumped by the schema dumper,
0
+# like if you have constraints or database-specific column types
0
+# config.active_record.schema_format = :sql
0
\ No newline at end of file

Comments

henrik Mon Dec 01 03:26:31 -0800 2008 at railties/environments/environment.rb

So it wasn’t first changed in this commit, but: on line 32 of the new version, observers are assigned as “config.active_record.observers = :cacher, :garbage_collector, :forum_observer”. Is that missing square brackets?

dbloete Mon Dec 01 05:39:04 -0800 2008

yes, they are missing.

Roman2K Mon Dec 01 12:39:55 -0800 2008 at railties/environments/environment.rb L16

%W was correct. %w won’t perform interpolation.

Roman2K Mon Dec 01 12:43:20 -0800 2008 at railties/environments/environment.rb L37

This line should rather read: config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]

dhh Tue Dec 02 06:15:33 -0800 2008