From e236f573376a8ac44e7c56ff4fcd2037ee0da493 Mon Sep 17 00:00:00 2001 From: aereal Date: Thu, 29 Dec 2011 11:50:02 +0900 Subject: [PATCH] support Rack 1.4 --- lib/omniauth/builder.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/omniauth/builder.rb b/lib/omniauth/builder.rb index 664a8a4..bcb16b7 100644 --- a/lib/omniauth/builder.rb +++ b/lib/omniauth/builder.rb @@ -2,11 +2,6 @@ require 'omniauth' module OmniAuth class Builder < ::Rack::Builder - def initialize(app, &block) - @app = app - super(&block) - end - def on_failure(&block) OmniAuth.config.on_failure = block end @@ -30,7 +25,6 @@ module OmniAuth end def call(env) - @ins << @app unless @ins.include?(@app) to_app.call(env) end end