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:
parent
e52affb210
commit
57f0b9738e
1 changed files with 1 additions and 2 deletions
|
@ -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) }
|
||||
|
|
Loading…
Reference in a new issue