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

Errors out in a Rails project that doesn't use ActiveRecord (like MongoMapper) #10

Closed
dacort opened this issue Dec 30, 2009 · 6 comments

Comments

@dacort
Copy link
Contributor

dacort commented Dec 30, 2009

I'm using MongoMapper on a project and loading Feedzirra, which uses loofah. phew

I remove ActiveRecord from my configuration and get this error message:
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:443:in `load_missing_constant':NameError: uninitialized constant ActiveRecord

Trying to use rake also results in an error:
uninitialized constant ActiveRecord

Using this to remove AR:
config.frameworks -= [:active_record]

@dacort
Copy link
Contributor Author

dacort commented Dec 30, 2009

Just pushed a fix. dacort/loofah@ 7a7ff04

@flavorjones
Copy link
Owner

I am shocked, shocked to hear that non-ActiveRecord ORMs are being used. :-)

Will pull in your fix tonight.

@flavorjones
Copy link
Owner

Added tests for rails 2.0, 2.1, 2.2 and 2.3 without AR, then merged in your change. Thanks for the help!

@mrkurt
Copy link

mrkurt commented Jan 22, 2010

Is this going out in a gem anytime soon?

@flavorjones
Copy link
Owner

Yeargh, I totally forgot that I have a bunch of unreleased stuff queued up. I will try to finish documenting and release tonight.

@mrkurt
Copy link

mrkurt commented Jan 22, 2010

Oh good, that'll save me some work!

This issue was closed.
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