Sha256: 98191bbf5d79ee7be2e556054c8a5236f38c1649056373c83ebc9c3578cff7f5
Contents?: true
Size: 1.51 KB
Versions: 2
Compression:
Stored size: 1.51 KB
Contents
# doorkeeper-mongodb extension ## Installation doorkeeper-mongodb provides doorkeeper support to MongoMapper, Mongoid 2, 3, 4 and 5. To start using it, add to your Gemfile: ``` ruby gem "doorkeeper-mongodb", github: "doorkeeper-gem/doorkeeper-mongodb" ``` Run [doorkeeper’s installation generator]: rails generate doorkeeper:install [doorkeeper’s installation generator]: https://github.com/doorkeeper-gem/doorkeeper#installation This will install the doorkeeper initializer into `config/initializers/doorkeeper.rb`. Set the ORM configuration: ``` ruby Doorkeeper.configure do orm :mongoid2 # or :mongoid3, :mongoid4, :mongoid5, :mongo_mapper end ``` ### Mongoid indexes Make sure you create indexes for doorkeeper models. You can do this either by running `rake db:mongoid:create_indexes` or (if you're using Mongoid 2) by adding `autocreate_indexes: true` to your `config/mongoid.yml` ### MongoMapper indexes Generate the `db/indexes.rb` file and create indexes for the doorkeeper models: rails generate doorkeeper:mongo_mapper:indexes rake db:index ## Tests To run tests, clone this repository and run `rake`. It will copy and run doorkeeper’s original test suite, after configuring the ORM according to the variables defined in `.travis.yml` file. To run locally, you need to choose a gemfile, with a command similar to: ``` $ export BUNDLE_GEMFILE=$PWD/gemfiles/Gemfile.mongoid4.rb ``` --- Please refer to https://github.com/doorkeeper-gem/doorkeeper for instructions on doorkeeper’s project.
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
doorkeeper-mongodb-3.0.0 | README.md |
dd-doorkeeper-mongodb-3.0.0 | README.md |