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:
parent
581de0cbeb
commit
54b06ccac7
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue