mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Use association value for determining serializer used
Ensures overridden association value works when orignal association does not return a result.
This commit is contained in:
@@ -45,7 +45,10 @@ module ActiveModel
|
||||
id: 1,
|
||||
name: "Steve K."
|
||||
},
|
||||
blog: nil
|
||||
blog: {
|
||||
id: 999,
|
||||
name: "Custom blog"
|
||||
}
|
||||
}]
|
||||
assert_equal expected, @adapter.serializable_hash
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user