Class: Intermodal::Rack::DummyStore

Inherits:
ActionDispatch::Session::AbstractStore
  • Object
show all
Defined in:
lib/intermodal/rack/dummy_store.rb

Overview

A dummy store that does nothing, but satisfies Warden’s session store requirement This allows us to use the x_auth_token strategy

Instance Method Summary collapse

Instance Method Details

#destroy_session(env, sid, options) ⇒ Object

Remove a session from the cache.



19
20
21
# File 'lib/intermodal/rack/dummy_store.rb', line 19

def destroy_session(env, sid, options)
  nil
end

#get_session(env, sid) ⇒ Object



9
10
11
# File 'lib/intermodal/rack/dummy_store.rb', line 9

def get_session(env, sid)
  [nil, nil]
end

#set_session(env, sid, session, options) ⇒ Object

Set a session in the cache.



14
15
16
# File 'lib/intermodal/rack/dummy_store.rb', line 14

def set_session(env, sid, session, options)
  nil
end