0
@@ -12,7 +12,7 @@ Rails::Initializer.run do |config|
0
# -- all .rb files in that directory are automatically loaded.
0
# Add additional load paths for your own custom dirs
0
- # config.load_paths += %
W( #{RAILS_ROOT}/extras )
+ # config.load_paths += %w( #{RAILS_ROOT}/extras )
0
# Specify gems that this application depends on and have them installed with rake gems:install
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
- # 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
+ # 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
- # 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.
# config.i18n.load_path << Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
0
# config.i18n.default_locale = :de
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
- # 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
- # 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
- # Activate observers that should always be running
0
- # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
0
\ No newline at end of file
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?
yes, they are missing.
%Wwas correct.%wwon’t perform interpolation.This line should rather read:
config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]Thanks for the code review, guys. Got it in on http://github.com/rails/rails/commit/bf024b6a11253b3d2599caf41f7ccf2d31e68cb3