Giter Site home page Giter Site logo

Comments (19)

felipeelias avatar felipeelias commented on May 12, 2024

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 ?

from doorkeeper.

piotrj avatar piotrj commented on May 12, 2024

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.

from doorkeeper.

trungpham avatar trungpham commented on May 12, 2024

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

from doorkeeper.

nambrot avatar nambrot commented on May 12, 2024

In favor of this too (Re:Mongoid)

from doorkeeper.

trungpham avatar trungpham commented on May 12, 2024

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!

from doorkeeper.

felipeelias avatar felipeelias commented on May 12, 2024

I'll definitely take a look. Thanks

from doorkeeper.

felipeelias avatar felipeelias commented on May 12, 2024

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

Run specs with: rake DOORKEEPER_ORM=mongoid

Completely experimental support for now

from doorkeeper.

trungpham avatar trungpham commented on May 12, 2024

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

from doorkeeper.

l4u avatar l4u commented on May 12, 2024

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

from doorkeeper.

l4u avatar l4u commented on May 12, 2024

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

from doorkeeper.

barmstrong avatar barmstrong commented on May 12, 2024

Awesome - glad to see a mongoid workaround. Thanks!

from doorkeeper.

felipeelias avatar felipeelias commented on May 12, 2024

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

from doorkeeper.

barmstrong avatar barmstrong commented on May 12, 2024

Sweet, thx for the update!

from doorkeeper.

jjaffeux avatar jjaffeux commented on May 12, 2024

Great news !

from doorkeeper.

felipeelias avatar felipeelias commented on May 12, 2024

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) 😄

from doorkeeper.

barmstrong avatar barmstrong commented on May 12, 2024

Nice work! 👍

from doorkeeper.

jjaffeux avatar jjaffeux commented on May 12, 2024

Will try to test it this week-end

from doorkeeper.

fawzyj avatar fawzyj commented on May 12, 2024

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

from doorkeeper.

felipeelias avatar felipeelias commented on May 12, 2024

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

from doorkeeper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.