diff --git a/lib/rack-timeout.rb b/lib/rack-timeout.rb
index <HASH>..<HASH> 100644
--- a/lib/rack-timeout.rb
+++ b/lib/rack-timeout.rb
@@ -2,7 +2,7 @@ require File.join(File.expand_path(File.dirname(__FILE__)), 'rack/timeout')
 
 if defined? Rails
   case Rails::VERSION::MAJOR
-  when 2; Rails.configuration.middleware.use Rack::Timeout
+  when 2; Rails.configuration.middleware.insert 0, Rack::Timeout
   when 3
     class Rack::Timeout::Railtie < Rails::Railtie
       initializer("rack-timeout.insert-rack-timeout") { |app| app.config.middleware.insert 0, Rack::Timeout }
insert rack-timeout before everything else on rails 2.x too