Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

readme formatting

[skip ci]
  • Loading branch information...
commit 8a0794345941d7aadc7f8f68264fce51a32b6360 1 parent d49af16
John Nunemaker authored
Showing with 7 additions and 5 deletions.
  1. +7 −5 README.md
12 README.md
View
@@ -10,12 +10,14 @@ gem install toystore-mongo
## Usage
- class User
- include Toy::Mongo
- adapter :mongo, Mongo::Connection.new.db('myapp')['users']
+```ruby
+class User
+ include Toy::Mongo
+ adapter :mongo, Mongo::Connection.new.db('myapp')['users']
- attribute :name, String
- end
+ attribute :name, String
+end
+```
Including Toy::Mongo includes Toy::Store and then does a few things:
Please sign in to comment.
Something went wrong with that request. Please try again.