diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-01-03 23:02:29 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-01-03 23:02:29 -0600 |
commit | ed2e776bdec3f0764433a6dc4f592f9bebfea859 (patch) | |
tree | 97837b9eafad49ac2444dfbd081a77ce91e2df48 /railties | |
parent | f7ee082bb3cde977a199b81207e5d12e1d7101b3 (diff) | |
download | rails-ed2e776bdec3f0764433a6dc4f592f9bebfea859.tar.gz rails-ed2e776bdec3f0764433a6dc4f592f9bebfea859.tar.bz2 rails-ed2e776bdec3f0764433a6dc4f592f9bebfea859.zip |
Move metal above method piggybacking middleware and add some test coverage
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/initializer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb index 10c2490624..619701460d 100644 --- a/railties/lib/initializer.rb +++ b/railties/lib/initializer.rb @@ -537,7 +537,7 @@ Run `rake gems:install` to install the missing gems. end def initialize_metal - configuration.middleware.use Rails::Rack::Metal + configuration.middleware.insert_before(:"ActionController::VerbPiggybacking", Rails::Rack::Metal) end # Initializes framework-specific settings for each of the loaded frameworks |