Module: ActionDispatch::Session
- Defined in:
- lib/action_dispatch.rb,
lib/action_dispatch/middleware/session/cache_store.rb,
lib/action_dispatch/middleware/session/cookie_store.rb,
lib/action_dispatch/middleware/session/abstract_store.rb,
lib/action_dispatch/middleware/session/mem_cache_store.rb
Defined Under Namespace
Modules: Compatibility, SessionObject, StaleSessionCheck Classes: AbstractSecureStore, AbstractStore, CacheStore, CookieStore, MemCacheStore, SessionRestoreError
Class Method Summary collapse
Class Method Details
.resolve_store(session_store) ⇒ Object
:nodoc:
111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/action_dispatch.rb', line 111 def self.resolve_store(session_store) # :nodoc: self.const_get(session_store.to_s.camelize) rescue NameError raise <<~ERROR Unable to resolve session store #{session_store.inspect}. #{session_store.inspect} resolves to ActionDispatch::Session::#{session_store.to_s.camelize}, but that class is undefined. Is #{session_store.inspect} spelled correctly, and are any necessary gems installed? ERROR end |