Skip to content

Commit

Permalink
Changed 'schema({})' to 'this.schema({})' in README since original th…
Browse files Browse the repository at this point in the history
…rows ReferenceError. Fixes #52
  • Loading branch information
scottwrobinson committed Feb 23, 2016
1 parent b5fdd9b commit 522d4dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ Notice how the schema is declared right in the constructor as member variables.

The name of the collection can be set by overriding the `static collectionName()` method, which should return the desired collection name as a string. If one isn't given, then Camo uses the name of the class and naively appends an 's' to the end to make it plural.

Schemas can also be defined using the `schema()` method. For example, in the `constructor()` method you could use:
Schemas can also be defined using the `this.schema()` method. For example, in the `constructor()` method you could use:

```javascript
schema({
this.schema({
name: String,
valuation: {
type: Number,
Expand Down

0 comments on commit 522d4dc

Please sign in to comment.