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

Already on GitHub? Sign in to your account

Specifics of using gem with bundler #48

Open
glebe opened this Issue Mar 27, 2013 · 2 comments

Comments

Projects
None yet
3 participants

glebe commented Mar 27, 2013

When including gem through bundler, one should use the following syntax:

gem "ruby-openid", :require => 'openid'

to avoid problems like this on application start

ActionDispatch::Session::SessionRestoreError (Session contains objects whose class definition isn't available.
Remember to require the classes for all objects kept in the session.
(Original exception: uninitialized constant OpenID [NameError])
):

I have a similar problem, after restarting server.

any news on this? we also got this on production, having to manually require it is a bit cumbersome

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