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

Do you plan Rails 5 support? #33

Open
drgcms opened this issue Aug 14, 2016 · 2 comments
Open

Do you plan Rails 5 support? #33

drgcms opened this issue Aug 14, 2016 · 2 comments

Comments

@drgcms
Copy link

drgcms commented Aug 14, 2016

I get this error when running my project with mongo_session_store-rails4 in Rails 5.

RuntimeError (#find_session not implemented.):

vendor/ruby/2.3.0/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:380:in find_session' vendor/ruby/2.3.0/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:270:inload_session'
vendor/ruby/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/session/abstract_store.rb:56:in block in load_session' vendor/ruby/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/session/abstract_store.rb:64:instale_session_check!'
vendor/ruby/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/middleware/session/abstract_store.rb:56:in load_session' vendor/ruby/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/request/session.rb:216:inload!'
vendor/ruby/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/request/session.rb:212:in load_for_write!' vendor/ruby/2.3.0/gems/actionpack-5.0.0.1/lib/action_dispatch/request/session.rb:114:in[]='
...
...

It looks like session support was changed in rack 2.

I am using mongoid_store

WwwDrgcms::Application.config.session_store :mongoid_store , {
expire_after: 1.month
}

and if I disable these lines application is working to some degree.

by
TheR

@brianhempel
Copy link
Owner

The mongoid/mongo_session_store fork will soon have Rails 5 support under the mongo_session_store gem name.

Will close this issue when a gem is released.

@tombruijn
Copy link

Experimental support added in PR mongoid#31
Let me know if it works :)

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

3 participants