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

Not compatible with mongoid #3

Open
theycallmeswift opened this issue Feb 19, 2013 · 3 comments
Open

Not compatible with mongoid #3

theycallmeswift opened this issue Feb 19, 2013 · 3 comments

Comments

@theycallmeswift
Copy link

I tried using this with my app that uses Mongoid and got the following error:

>> CohortMe.analyze(activation_class: Hackathon)
NoMethodError: private method `select' called for Hackathon:Class
    from /Users/theycallmeswift/.rvm/gems/ruby-1.9.3-p194/gems/cohort_me-0.0.1/lib/cohort_me.rb:34:in `analyze'
    from (irb):2
    from /Users/theycallmeswift/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.12/lib/rails/commands/console.rb:47:in `start'
    from /Users/theycallmeswift/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.12/lib/rails/commands/console.rb:8:in `start'
    from /Users/theycallmeswift/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.12/lib/rails/commands.rb:41:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'
@n8
Copy link
Owner

n8 commented Feb 19, 2013

Ok. Thanks for posting this! I have never used Mongoid. Right now the code definitely assumes ActiveRecord like syntax. But I'd love to support more databases. Definitely welcome patches from anyone more familiar with Mongoid.

@letz
Copy link

letz commented Sep 4, 2014

any development regarding Mongoid support?

@gitChang
Copy link

gitChang commented Feb 6, 2015

Does this mean we have to use .all for the meantime?

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

4 participants