1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove config dir from the load path

This commit is contained in:
Jeremy Kemper 2008-12-03 21:46:36 -06:00
parent e52affb210
commit 57f0b9738e

View file

@ -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) }