Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
Add usage to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Aug 3, 2012
1 parent b22c910 commit d19b478
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -16,6 +16,16 @@ Or install it yourself with:


$ gem install flipper-mongo $ gem install flipper-mongo


## Usage

```ruby
require 'flipper/adapters/mongo'
collection = Mongo::Connection.new.db('testing')['flipper']
adapter = Flipper::Adapters::Mongo.new(collection, 'features')
flipper = Flipper.new(adapter)
# profit...
```

## Contributing ## Contributing


1. Fork it 1. Fork it
Expand Down

0 comments on commit d19b478

Please sign in to comment.