Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
bf4 committed Nov 27, 2016
1 parent ed19043 commit d604d13
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ Breaking changes:

Features:

- [#1982](https://github.com/rails-api/active_model_serializers/pull/1982) Add ActiveModelSerializers::Model.attributes to configure PORO attributes (@bf4).
- [#1982](https://github.com/rails-api/active_model_serializers/pull/1982) Add ActiveModelSerializers::Model.attributes to configure PORO attributes. (@bf4)

Fixes:

- [#1984](https://github.com/rails-api/active_model_serializers/pull/1984) Mutation of ActiveModelSerializers::Model now changes the attributes. (@bf4)

Misc:

- [#1984](https://github.com/rails-api/active_model_serializers/pull/1984) Make test attributes explicit. Test models have 'associations' support. (@bf4)

### [v0.10.3 (2016-11-21)](https://github.com/rails-api/active_model_serializers/compare/v0.10.2...v0.10.3)

Fixes:
Expand Down
8 changes: 4 additions & 4 deletions docs/general/rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ render json: @posts, serializer: CollectionSerializer, each_serializer: PostPrev
## Serializing non-ActiveRecord objects

All serializable resources must pass the
[ActiveModel::Serializer::Lint::Tests](../../lib/active_model/serializer/lint.rb#L17).
[ActiveModel::Serializer::Lint::Tests](../../lib/active_model/serializer/lint.rb#L17). [See ../../ARCHITECTURE.md](ARCHITECTURE) for more information.

See the ActiveModelSerializers::Model for a base class that implements the full
API for a plain-old Ruby object (PORO).
The [`ActiveModelSerializers::Model`](../../../lib/active_model_serializers/model.rb) base implements the full
API for a plain-old Ruby object (PORO) and can be used for reference.

## SerializableResource options

Expand Down Expand Up @@ -263,7 +263,7 @@ end
render json: @post, namespace: Api::V2
```

This tells the serializer lookup to check for the existence of `Api::V2::PostSerializer`, and if any relations are rendered with `@post`, they will also utilize the `Api::V2` namespace.
This tells the serializer lookup to check for the existence of `Api::V2::PostSerializer`, and if any relations are rendered with `@post`, they will also utilize the `Api::V2` namespace.

The `namespace` can be any object whose namespace can be represented by string interpolation (i.e. by calling to_s)
- Module `Api::V2`
Expand Down

0 comments on commit d604d13

Please sign in to comment.