Skip to content

Commit 41ae5f7

Browse files
committed
Add 1356 to changelog; given credit for 1336
1 parent 81b1654 commit 41ae5f7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,17 @@ Breaking changes:
1616

1717
Features:
1818

19-
- [#1336](https://github.com/rails-api/active_model_serializers/pull/1336) Added support for Grape >= 0.13, < 1.0
19+
- [#1356](https://github.com/rails-api/active_model_serializers/pull/1356) Add inline syntax for
20+
attributes and associations (@bf4 @beauby @noahsilas)
21+
* Allows defining attributes so that they don't conflict with existing methods. e.g. `attribute
22+
:title do 'Mr. Topum Hat' end`
23+
* Allows defining associations so that they don't conflict with existing methods. e.g. `has_many
24+
:titles do customers.pluck(:title) end`
25+
* Allows dynamic associations, as compared to compare to using
26+
[`virtual_value`](https://github.com/rails-api/active_model_serializers/pull/1356#discussion_r47146466).
27+
e.g. `has_many :reviews, virtual_value: [{ id: 1 }, { id: 2 }]`
28+
* Removes dynamically defined methods on the serializer
29+
- [#1336](https://github.com/rails-api/active_model_serializers/pull/1336) Added support for Grape >= 0.13, < 1.0 (@johnhamelink)
2030
- [#1291](https://github.com/rails-api/active_model_serializers/pull/1291) Add logging (@maurogeorge)
2131
- [#1225](https://github.com/rails-api/active_model_serializers/pull/1225) Better serializer lookup, use nested serializer when it exists (@beauby)
2232
- [#1172](https://github.com/rails-api/active_model_serializers/pull/1172) Better serializer registration, get more than just the first module (@bf4)

0 commit comments

Comments
 (0)