mirror of
https://github.com/omniauth/omniauth.git
synced 2022-11-09 12:31:49 -05:00
Merging master.
This commit is contained in:
commit
3dbfdff127
68 changed files with 2208 additions and 245 deletions
8
lib/omniauth/test/phony_session.rb
Normal file
8
lib/omniauth/test/phony_session.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
class OmniAuth::Test::PhonySession
|
||||
def initialize(app); @app = app end
|
||||
def call(env)
|
||||
@session ||= (env['rack.session'] || {})
|
||||
env['rack.session'] = @session
|
||||
@app.call(env)
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue