aboutsummaryrefslogtreecommitdiffstats
path: root/railties/environments
diff options
context:
space:
mode:
Diffstat (limited to 'railties/environments')
-rw-r--r--railties/environments/shared.rb4
-rw-r--r--railties/environments/shared_for_gem.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/railties/environments/shared.rb b/railties/environments/shared.rb
index 2e4e4ade13..f983c74786 100644
--- a/railties/environments/shared.rb
+++ b/railties/environments/shared.rb
@@ -64,8 +64,8 @@ end
ActionController::Routing::Routes.reload
Controllers = Dependencies::LoadingModule.root(
- File.expand_path(File.join(RAILS_ROOT, 'app', 'controllers')),
- File.expand_path(File.join(RAILS_ROOT, 'components'))
+ File.join(RAILS_ROOT, 'app', 'controllers'),
+ File.join(RAILS_ROOT, 'components')
)
# Include your app's configuration here:
diff --git a/railties/environments/shared_for_gem.rb b/railties/environments/shared_for_gem.rb
index ee77e3341a..db6c797795 100644
--- a/railties/environments/shared_for_gem.rb
+++ b/railties/environments/shared_for_gem.rb
@@ -59,8 +59,8 @@ end
ActionController::Routing::Routes.reload
Controllers = Dependencies::LoadingModule.root(
- File.expand_path(File.join(RAILS_ROOT, 'app', 'controllers')),
- File.expand_path(File.join(RAILS_ROOT, 'components'))
+ File.join(RAILS_ROOT, 'app', 'controllers'),
+ File.join(RAILS_ROOT, 'components')
)
# Include your app's configuration here: