fukmuq
Last Updated: July 12, 2018
·
81
· cardsfanbob

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.
Screenshot 2018-05-17 17.40.57.png