Fixed a bug that appeared when json adapter serialize a nil association

This commit is contained in:
groyoh
2015-04-28 22:20:21 +02:00
parent fc6276cab8
commit 5dcdfaaef3
2 changed files with 8 additions and 1 deletions

View File

@@ -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