1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00

Bug fixes

This commit is contained in:
shyndman 2013-02-07 17:00:17 -05:00
parent 581de0cbeb
commit 54b06ccac7

View file

@ -46,8 +46,8 @@ module AwesomePrint
end
unless exclude_assoc
data = object.embedded_associations.inject(data) do |hash, assoc|
hash[assoc.name] = assoc.load_target
data = object.class.embedded_associations.inject(data) do |hash, assoc|
hash[assoc.name] = object.get_proxy(assoc) # Should always be array or Ripple::EmbeddedDocument for embedded associations
hash
end
end