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

Y U NO ActiveModel? #26

Closed
amrnt opened this issue Dec 24, 2011 · 19 comments
Closed

Y U NO ActiveModel? #26

amrnt opened this issue Dec 24, 2011 · 19 comments
Assignees
Milestone

Comments

@amrnt
Copy link

amrnt commented Dec 24, 2011

I'm talking in sake of supporting other database libraries such as Mongoid

@felipeelias
Copy link
Member

I like the idea of being database agnostic. Ideally it would be nice to release this sort of feature in version 0.4/0.5.

@piotrj ?

@piotrj
Copy link
Member

piotrj commented Dec 25, 2011

Hmmm I don't think that just using ActiveModel would make it database agnostic. That is not what ActiveModel is for. But if we would use this and some ORM adapater (for example: https://github.com/ianwhite/orm_adapter) then yeah - that would make sense. And yeah - I think that supporting something except ActiveRecord would be awesome idea and target for 0.4/0.5.

@trungpham
Copy link

I am also interested with getting this to work with mongoid.

@nambrot
Copy link

nambrot commented Feb 5, 2012

In favor of this too (Re:Mongoid)

@trungpham
Copy link

It seems like it's possible to use Mongoid with doorkeeper by pulling epicagency@f0a5f8b
into your branch.

Be warned though. You will lose SQL database support. The code needs to be refactored to work with both ActiveRecord and Mongoid.

Check it out!

@felipeelias
Copy link
Member

I'll definitely take a look. Thanks

@felipeelias
Copy link
Member

Working on this: https://github.com/applicake/doorkeeper/tree/mongoid-support

Run specs with: rake DOORKEEPER_ORM=mongoid

Completely experimental support for now

@trungpham
Copy link

very cool man. can't wait to try it out.

@l4u
Copy link

l4u commented May 7, 2012

@felipeelias How do I configure it to use AR/Mongoid?
It doesn't seem to include the files inside lib/doorkeeper/models/mongoid/* ?

@l4u
Copy link

l4u commented May 7, 2012

just found the answer by reading the source code :p

to use mongoid, edit config/initializers/doorkeeper.rb
add orm 'mongoid' inside the Doorkeeper.configure block

@barmstrong
Copy link

Awesome - glad to see a mongoid workaround. Thanks!

@ghost ghost assigned felipeelias May 24, 2012
@felipeelias
Copy link
Member

We're getting there. Still have to rebase with latest changes in the gem

@barmstrong
Copy link

Sweet, thx for the update!

@jjaffeux
Copy link

Great news !

@felipeelias
Copy link
Member

Just rebased the branch and fix bazillion of issues with mongo. I thought it would be easier but it turned out it wasn't.

This is the branch

Hopefully it would be straightforward to work from mongoid. There might be issues with installation process which will try to copy migration files, so be aware (it will be fixed).

If somebody who uses mongo can test this branch it would be great! Please make comments and things that you think it could be improved.

Thanks for waiting (so long) 😄

@barmstrong
Copy link

Nice work! 👍

@jjaffeux
Copy link

Will try to test it this week-end

@fawzyj
Copy link

fawzyj commented May 31, 2012

Thanks for the nice work, i was looking for it really, noe, wants to know where to get started, will be nice to have a wiki page

@felipeelias
Copy link
Member

@fawzyj I'll update the docs today and let you know.

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

9 participants