diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-12-03 21:46:36 -0600 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-12-03 21:46:36 -0600 |
commit | 57f0b9738e71016d8a9898d83fe39b2310bf6c91 (patch) | |
tree | 113cdda90b86cd3e5b48076eb32c53c8760848b2 /railties/lib | |
parent | e52affb210f457ea5a1714af03e3106f6d9f4b1e (diff) | |
download | rails-57f0b9738e71016d8a9898d83fe39b2310bf6c91.tar.gz rails-57f0b9738e71016d8a9898d83fe39b2310bf6c91.tar.bz2 rails-57f0b9738e71016d8a9898d83fe39b2310bf6c91.zip |
Remove config dir from the load path
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/initializer.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb index 4bb1e480b7..06a3332c42 100644 --- a/railties/lib/initializer.rb +++ b/railties/lib/initializer.rb @@ -569,7 +569,7 @@ Run `rake gems:install` to install the missing gems. def load_application_initializers if gems_dependencies_loaded Dir["#{configuration.root_path}/config/initializers/**/*.rb"].sort.each do |initializer| - load initializer.sub(/^#{Regexp.escape(configuration.root_path)}\//, '') + load(initializer) end end end @@ -927,7 +927,6 @@ Run `rake gems:install` to install the missing gems. app/controllers app/helpers app/services - config lib vendor ).map { |dir| "#{root_path}/#{dir}" }.select { |dir| File.directory?(dir) } |