mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Fixed a bug that appeared when json adapter serialize a nil association
This commit is contained in:
@@ -23,7 +23,7 @@ module ActiveModel
|
||||
end
|
||||
end
|
||||
else
|
||||
if association
|
||||
if association && association.object
|
||||
@hash[name] = cache_check(association) do
|
||||
association.attributes(options)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user