Browse files

Remove config dir from the load path

  • Loading branch information...
1 parent e52affb commit 57f0b9738e71016d8a9898d83fe39b2310bf6c91 @jeremy jeremy committed Dec 3, 2008
Showing with 1 addition and 2 deletions.
  1. +1 −2 railties/lib/initializer.rb
View
3 railties/lib/initializer.rb
@@ -569,7 +569,7 @@ def after_initialize
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 @@ def default_load_paths
app/controllers
app/helpers
app/services
- config
lib
vendor
).map { |dir| "#{root_path}/#{dir}" }.select { |dir| File.directory?(dir) }

0 comments on commit 57f0b97

Please sign in to comment.