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

uninitialized constant ActiveRecord::SessionStore (NameError) #103

Closed
rgrabowski opened this issue Jan 30, 2014 · 3 comments
Closed

uninitialized constant ActiveRecord::SessionStore (NameError) #103

rgrabowski opened this issue Jan 30, 2014 · 3 comments

Comments

@rgrabowski
Copy link

On new Rails 4.02 app I have:

...activesupport-4.0.2/lib/active_support/inflector/methods.rb:228:in `const_get': uninitialized constant ActiveRecord::SessionStore (NameError)

I solved it by adding 'activerecord-session_store' gem.
Is that a correct way? There is no info about it in docs.

@bradrobertson
Copy link
Contributor

ya I should remove that from the generator. It's really just an example, it's not required in any way to exclude your session store. It's just to remind people if they are using ActiveRecord for storing sessions that they might want that model to be in the global space.

@rgrabowski
Copy link
Author

I've removed 'session store' from apartment.rb and it is working.
Thanks

@bradrobertson
Copy link
Contributor

This has been removed from the generator

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

2 participants