Skip to content
Praveen Kumar S edited this page Jul 12, 2017 · 2 revisions

MongoDB support is implemented using Mongoid, so you can create apps and notifications using an API almost identical to ActiveRecord.

  • Add gem 'rpush-mongoid', to your Gemfile.
  • Set config.client = :mongoid in rpush.rb.
  • That's it!

The above gem doesn't support mongoid 6+, use below gem, if you are using mongoid 6+.

  • Add gem 'rpush-mongoid', github: 'spkprav/rpush-mongoid', branch: 'master' to your gem file
  • Set config.client = :mongoid in rpush.rb.
  • Hmm, nothing else.