Giter VIP home page Giter VIP logo

Comments (14)

felipeelias avatar felipeelias commented on May 8, 2024

This only works in master branch right now. Which one are you using?

from doorkeeper.

dkrusenstrahle avatar dkrusenstrahle commented on May 8, 2024

First I added this to my gem file: gem 'doorkeeper', then I tried gem 'doorkeeper', '~> 0.4.2'.
Still the same problem (even after bundle).

from doorkeeper.

dkrusenstrahle avatar dkrusenstrahle commented on May 8, 2024

Now I tried to add this to my gem file and ran bundle

gem 'doorkeeper', :git => 'https://github.com/applicake/doorkeeper.git'

According to the log I got this version now: doorkeeper (0.5.0.dev) from https://github.com/applicake/doorkeeper.git (at master)

What else do I need to do to "active" mongoid?

from doorkeeper.

felipeelias avatar felipeelias commented on May 8, 2024

you should use:

gem 'doorkeeper', :git => 'https://github.com/applicake/doorkeeper'

Mongoid support will be released in 0.5

from doorkeeper.

dkrusenstrahle avatar dkrusenstrahle commented on May 8, 2024

Yeah, I tried that and I got the version 0.5.0.dev now. But how do I get doorkeeper to "switch" from SQL to MongoId. Right now if I create a new application it still gets saved to the SQL database and not Mongo.

from doorkeeper.

felipeelias avatar felipeelias commented on May 8, 2024

Sorry, didn't see the previous message. If you use the version from git, this is everything you should do.

Do you have multiple databases in your app?

from doorkeeper.

dkrusenstrahle avatar dkrusenstrahle commented on May 8, 2024

No, I don´t think so anyway. Now I have moved one step forward but gets this error:

Invalid options passed to Doorkeeper::AccessGrant.store_in: oauth_access_grants.

from doorkeeper.

felipeelias avatar felipeelias commented on May 8, 2024

What's the Mongoid version you're using?

from doorkeeper.

dkrusenstrahle avatar dkrusenstrahle commented on May 8, 2024

I am using mongoid (3.0.0.rc).

from doorkeeper.

felipeelias avatar felipeelias commented on May 8, 2024

Is it possible for you to try with mongoid 2.x?

The API for 3.0 changed a lot, and it's not supported yet.

from doorkeeper.

dkrusenstrahle avatar dkrusenstrahle commented on May 8, 2024

Using 2.4.0-stable of MongoId now. But now I get this error when running doorkeeper install "BSON::BSON_CODER.update_max_bson_size is deprecated and now a no-op. It will be removed in v2.0."

from doorkeeper.

dkrusenstrahle avatar dkrusenstrahle commented on May 8, 2024

Also: `validate_db_name': db_name must be a string or symbol (TypeError)

from doorkeeper.

dkrusenstrahle avatar dkrusenstrahle commented on May 8, 2024

Created a new application and used the correct Gem versions and now it works fine!
Thank you for creating this gem! Do you know when latest version of Mongoid will be supported?

from doorkeeper.

felipeelias avatar felipeelias commented on May 8, 2024

Cool.

It actually depends on mongoid release, if they release 3.0 final soon, we'll probably stick with this version.

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.