How do I get AwesomePrint.ap to show the associated objects that are nested inside an object? It doesn’t do this by default and I’m assuming there’s a way to force it?
How do I get AwesomePrint.ap to show the associated objects that are nested inside
Share
You can use the
rawparameter, e.g.This recursively formats instance variables. You can also make it the default using
AwesomePrint.defaults(Documentation)But beware: That feature can add a large amount of noise, especially when printing Rails related object instances. (especially
ActiveRecord::Base)