Awesome Print config for Rails
I just found out today that you can configure Awesome Print. Just create a ~/.aprc file and add the following:
AwesomePrint.defaults = {
color: {
hash: :pale,
class: :white
},
indent: -2,
sort_keys: true
}
The sort keys is super nice for objects with a lot of fields.
Written by cardsfanbob
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#