Permalink
Browse files

Rename engines_load_path to railties_load_path.

  • Loading branch information...
1 parent 9acd686 commit fed72b5842e5e8604917602a15c126d48cf12fde @josevalim josevalim committed Feb 20, 2010
Showing with 3 additions and 3 deletions.
  1. +2 −2 activesupport/lib/active_support/railtie.rb
  2. +1 −1 railties/lib/rails/engine.rb
View
4 activesupport/lib/active_support/railtie.rb
@@ -33,7 +33,7 @@ class Railtie < Rails::Railtie
railtie_name :i18n
# Initialize I18n load paths to an array
- config.i18n.engines_load_path = []
+ config.i18n.railties_load_path = []
config.i18n.load_path = []
initializer "i18n.initialize" do
@@ -49,7 +49,7 @@ class Railtie < Rails::Railtie
config.after_initialize do |app|
app.config.i18n.each do |setting, value|
case setting
- when :engines_load_path
+ when :railties_load_path
app.config.i18n.load_path.unshift(*value)
when :load_path
I18n.load_path += value
View
2 railties/lib/rails/engine.rb
@@ -90,7 +90,7 @@ def load_tasks
# I18n load paths are a special case since the ones added
# later have higher priority.
initializer :add_locales do
- config.i18n.engines_load_path.concat(paths.config.locales.to_a)
+ config.i18n.railties_load_path.concat(paths.config.locales.to_a)
end
initializer :add_view_paths do

0 comments on commit fed72b5

Please sign in to comment.