Possible problems with REE?

3 views
Skip to first unread message

BradfordW

unread,
Nov 23, 2009, 1:16:19 PM11/23/09
to MongoMapper
Hi there, I'm running rails 2.3.4 on REE inside nginx/passenger and I
seem to (it's been this way on two separate machines) get an error:
NameError: uninitialized constant
MongoMapper::EmbeddedDocument::ClassMethods::ObjectId

Below is output of the error, my installed gems and my ruby version.

http://gist.github.com/241246

My app runs fine on 1.8.7 (Snow leopard) tests pass, etc...

My app's tests all pass (you can see at the bottom of the gist there)

So I'm a little torn here as to how this is happening since in script/
console it croaks, but my tests all pass. If I load up the app from
the browser I can see "normal" actions, however upon creating I get
the error output listed in the gist as well (squawking about the
EmbeddedDocument::blah).

Any ideas?

BradfordW

unread,
Nov 23, 2009, 4:13:23 PM11/23/09
to MongoMapper
I solved this problem. And it was not MongoMapper.

What happened was that in environments/production.rb the
config.threadsafe! setting was enabled.

Commenting this out solved the issue and things run as they should.

Horray!
Reply all
Reply to author
Forward
0 new messages