Skip to content

Guide: sessions is misleading regarding custom session adapters #400

Open
@graywolf

Description

@graywolf

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions