File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,17 @@ Breaking changes:
1616
1717Features:
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 )
You can’t perform that action at this time.
0 commit comments