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 Mongoid::Document::PickleAdapter::Pickle (NameError) #2

Open
curthasselschwert opened this issue Nov 4, 2010 · 3 comments

Comments

@curthasselschwert
Copy link

When trying to run the pickle generator or simply my cucumber features (I had run the pickle generator before adding pickle-mongoid) I get the following error:

uninitialized constant Mongoid::Document::PickleAdapter::Pickle (NameError)

I can't seem to figure out the cause.

@martinciu
Copy link
Owner

What versions of rails, mongoid, pickle and machinist do you use?

@curthasselschwert
Copy link
Author

I'm using Rails 3.0.1, Mongoid 2.0.0.beta.20, Pickle 0.4.2, factory_girl_rails 1.0 with factory_girl 1.3.2. Thanks!

@martinciu
Copy link
Owner

The good thing is that you don't need to user pickle-mongoid. From version 0.4.0 adapter is in the original pickle gem. The bad thing is that I don't know where your error came from. You can look at the simple app that I've created for testign this issue: https://github.com/martinciu/pickle_mongoid_example . It works for me.

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