Skip to content

Commit

Permalink
Fix typos (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
oyeanuj committed Feb 14, 2020
1 parent 22a79b3 commit 5aab739
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/docs/associations.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Panko::ArraySerializer.new(posts, only: {
})
```

Let's disect `only` option we passed -
Let's dissect `only` option we passed -
* `instance` - list of attributes (and associations) we want to serializer for current instance of the serializer, in this case - `PostSerializer`.
* `author`, `comments` - here we specify the list of attributes we want to serialize for each association.

Expand All @@ -91,4 +91,4 @@ Panko::ArraySerializer.new(posts, only: {
})
```

As you see now in `comments` the `instance` have differenet meaning, the `CommentSerializer`.
As you see now in `comments` the `instance` have different meaning, the `CommentSerializer`.
4 changes: 2 additions & 2 deletions docs/docs/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ UserSerializer.new(except: [:name]).serialize(User.first)
> property is not taken into account.
> If you have a `has_many :state_transitions, name: :history` association
> defined, the key to use in filters is `:state_transitions`
> (e.g. `{ except: [:state_statitions] }`)
> (e.g. `{ except: [:state_transitions] }`)
## Filters For

Expand All @@ -110,7 +110,7 @@ end
UserSerializer.serialize(User.first)
```

> See disucssion in: https://github.com/yosiat/panko_serializer/issues/16
> See discussion in: https://github.com/yosiat/panko_serializer/issues/16
## Aliases

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/design-choices.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ And the usage of this serializer will be:
user = User.first

# create serializer, with empty options
serializer = UserSerilizer.new
serializer = UserSerializer.new

# serialize to JSON
serializer.serialize_to_json(user)
Expand Down

0 comments on commit 5aab739

Please sign in to comment.