mirror of
https://github.com/omniauth/omniauth.git
synced 2022-11-09 12:31:49 -05:00
8 lines
198 B
Ruby
8 lines
198 B
Ruby
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
|