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:
commit
83791f58da
1 changed files with 0 additions and 6 deletions
|
@ -2,11 +2,6 @@ require 'omniauth'
|
||||||
|
|
||||||
module OmniAuth
|
module OmniAuth
|
||||||
class Builder < ::Rack::Builder
|
class Builder < ::Rack::Builder
|
||||||
def initialize(app, &block)
|
|
||||||
@app = app
|
|
||||||
super(&block)
|
|
||||||
end
|
|
||||||
|
|
||||||
def on_failure(&block)
|
def on_failure(&block)
|
||||||
OmniAuth.config.on_failure = block
|
OmniAuth.config.on_failure = block
|
||||||
end
|
end
|
||||||
|
@ -30,7 +25,6 @@ module OmniAuth
|
||||||
end
|
end
|
||||||
|
|
||||||
def call(env)
|
def call(env)
|
||||||
@ins << @app unless @ins.include?(@app)
|
|
||||||
to_app.call(env)
|
to_app.call(env)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue