aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/initializer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/initializer.rb')
-rw-r--r--railties/lib/initializer.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb
index f22e34c7dc..637fe74313 100644
--- a/railties/lib/initializer.rb
+++ b/railties/lib/initializer.rb
@@ -536,9 +536,7 @@ Run `rake gems:install` to install the missing gems.
end
def initialize_metal
- Dir["#{configuration.root_path}/app/metal/*.rb"].each do |file|
- configuration.middleware.use(File.basename(file, '.rb').camelize)
- end
+ configuration.middleware.use Rails::Rack::Metal
end
# Initializes framework-specific settings for each of the loaded frameworks