applicake/doorkeeper — pull request #116 by carols10cents (2012-07-19 21:47:24+00:00)
Title: Adding MongoMapper support

Hi, I'm the current maintainer of [rstat.us](http://www.rstat.us) ([github](https://github.com/hotsh/rstat.us)) and I'm interested in using doorkeeper to make rstat.us an OAuth provider. We use MongoMapper, however, so this is my attempt to add MongoMapper support to doorkeeper.

I basically started from the Mongoid implementation and changed places where the MongoMapper syntax is different. I'd love any feedback you have!

The biggest issue I see is that there's a bug with MongoMapper and Rails 3.2.4+ that has been fixed in MongoMapper but hasn't been released yet (the fix is [this commit](https://github.com/jnunemaker/mongomapper/commit/4d35c6704a9b6b259a85b339f9ecaf9ca6966602)). I specified the github version of MongoMapper for this reason-- but that's probably not the best state to release doorkeeper in.

I have all the tests passing for all 3 ORMs [on my fork on travis](http://travis-ci.org/#!/carols10cents/doorkeeper/builds/1908261).

Again, I'd love any comments or feedback-- I'm happy to make any recommended revisions.