docs/mongo/README.md in flipper-mongo-0.22.1 vs docs/mongo/README.md in flipper-mongo-0.22.2

- old
+ new

@@ -22,10 +22,20 @@ ```ruby require 'flipper-mongo` ``` -**If you need to customize the adapter**, you can add this to an initializer: +**If you're using Mongoid**, you can add this to an initializer: + +```ruby +Flipper.configure do |config| + config.adapter do + Flipper::Adapters::Mongo.new(Mongoid.default_client['flipper']) + end +end +``` + +Or **if you need to customize the adapter** in any other way, you can add this to an initializer: ```ruby Flipper.configure do |config| config.adapter do collection = Mongo::Client.new(ENV["MONGO_URL"])["flipper"]