Closed pistachiomatt closed 11 years ago
Check if :raw => true option is set in ~/.aprc or ~/.irbrc . In the latest v1.1.0 :raw => false by default.
But :raw outputs these messy hidden attributes:
#<Shot:0x049f4440
@aggregation_cache = {},
@attributes_cache = {},
@destroyed = false,
…
attr_accessor :attributes = {
"id" => "53344”,
… actual data
}
Well, that's how it works...
When running a query like
Post.where( blah )
, awesome_print will list all the objects returned (in this example, posts) and also associations on each object (post comments).This makes it hard to read. Can I request an option to turn this off?
(Ps. I just found awesome_print it is really amazing. Doing customer support is at least 85% easier.)