method
resolve_store
v7.1.3.2 -
Show latest stable
- Class:
ActionDispatch::Session
resolve_store(session_store)public
No documentation available.
# File actionpack/lib/action_dispatch.rb, line 113
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