1
0
Fork 0
mirror of https://github.com/omniauth/omniauth.git synced 2022-11-09 12:31:49 -05:00

Merge pull request #561 from aereal/feature/support-rack-1.4

Support Rack 1.4
This commit is contained in:
Erik Michaels-Ober 2011-12-29 10:52:56 -08:00
commit 83791f58da

View file

@ -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