mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Merge pull request #1525 from groyoh/remove_warning_message
Fix deprecation warning
This commit is contained in:
commit
f02f0849b1
@ -37,7 +37,7 @@ module ActiveModel
|
||||
|
||||
def test_relationship_with_data_array
|
||||
posts = [Post.new(id: 1), Post.new(id: 2)]
|
||||
@serializer = ActiveModel::Serializer::ArraySerializer.new(posts)
|
||||
@serializer = ActiveModel::Serializer::CollectionSerializer.new(posts)
|
||||
@author.posts = posts
|
||||
@author.blog = nil
|
||||
expected = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user