File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ Breaking changes:
1313
1414Features:
1515
16+ - [ #1225 ] ( https://github.com/rails-api/active_model_serializers/pull/1125 ) Better serializer lookup, get namespaced resources and nested serializers inferred (@beauby )
1617- [ #1172 ] ( https://github.com/rails-api/active_model_serializers/pull/1172 ) Better serializer registration, get more than just the first module (@bf4 )
1718- [ #1158 ] ( https://github.com/rails-api/active_model_serializers/pull/1158 ) Add support for wildcards in ` include ` option (@beauby )
1819- [ #1127 ] ( https://github.com/rails-api/active_model_serializers/pull/1127 ) Add support for nested
Original file line number Diff line number Diff line change @@ -28,17 +28,18 @@ def test_overwritten_serializer_for_array
2828
2929 class SerializerTest < Minitest ::Test
3030 module ResourceNamespace
31- class Post < ::Model
32- end
33- class Comment < ::Model
34- end
31+ Post = Class . new ( ::Model )
32+ Comment = Class . new ( ::Model )
33+
3534 class PostSerializer < ActiveModel ::Serializer
3635 class CommentSerializer < ActiveModel ::Serializer
3736 end
3837 end
3938 end
39+
4040 class MyProfile < Profile
4141 end
42+
4243 class CustomProfile
4344 def serializer_class ; ProfileSerializer ; end
4445 end
You can’t perform that action at this time.
0 commit comments