Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guide: sessions is misleading regarding custom session adapters #400

Open
graywolf opened this issue Oct 16, 2017 · 0 comments
Open

Guide: sessions is misleading regarding custom session adapters #400

graywolf opened this issue Oct 16, 2017 · 0 comments

Comments

@graywolf
Copy link
Contributor

Here https://github.com/hanami/hanami.github.io/blob/build/source/guides/head/actions/sessions.md it says that

Custom storage technologies are autoloaded via require "rack/session/#{ adapter_name }". 

However, when I create file with class Rack::Session::Foo loadable by require 'rack/session/foo', it's not autoloaded and server complains about uninitialized constant. At the moment I just require it manualy at top of application.rb, but the guide should probably be reworded somehow (not sure how).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant