Skip to content

Commit 539683f

Browse files
committed
Update CHANGELOG
1 parent ed19043 commit 539683f

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@ Breaking changes:
66

77
Features:
88

9-
- [#1982](https://github.com/rails-api/active_model_serializers/pull/1982) Add ActiveModelSerializers::Model.attributes to configure PORO attributes (@bf4).
9+
- [#1982](https://github.com/rails-api/active_model_serializers/pull/1982) Add ActiveModelSerializers::Model.attributes to configure PORO attributes. (@bf4)
10+
- [#1984](https://github.com/rails-api/active_model_serializers/pull/1984) Split ActiveModel::Serializer::Lint::Tests into Caching and NonCaching. (@bf4)
1011

1112
Fixes:
1213

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

18+
- [#1984](https://github.com/rails-api/active_model_serializers/pull/1984) Make test attributes explicit. Test models have 'associations' support. (@bf4)
19+
1520
### [v0.10.3 (2016-11-21)](https://github.com/rails-api/active_model_serializers/compare/v0.10.2...v0.10.3)
1621

1722
Fixes:

docs/ARCHITECTURE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ Details:
9696
- Any Ruby object that passes the
9797
[Lint](http://www.rubydoc.info/github/rails-api/active_model_serializers/ActiveModel/Serializer/Lint/Tests)
9898
[code](https://github.com/rails-api/active_model_serializers/blob/master/lib/active_model/serializer/lint.rb).
99+
The non-caching tests can be run alone as `Lint::SerializationTests`.
99100

100101
ActiveModelSerializers provides a
101102
[`ActiveModelSerializers::Model`](https://github.com/rails-api/active_model_serializers/blob/master/lib/active_model_serializers/model.rb),

docs/general/rendering.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ render json: @posts, serializer: CollectionSerializer, each_serializer: PostPrev
4949
## Serializing non-ActiveRecord objects
5050

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

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

5757
## SerializableResource options
5858

@@ -263,7 +263,7 @@ end
263263
render json: @post, namespace: Api::V2
264264
```
265265

266-
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.
266+
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.
267267

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

0 commit comments

Comments
 (0)