Closed nickhoffman closed 12 years ago
It's because of how ap merges in the defaults. A quick fix would be to add merge_options! (AwesomePrint.defaults)
to AwesomePrint::Inspector#initialize
@drewyoung1, is that an ideal solution, or would it be considered a bit of a kludge by the maintainers?
@nickhoffman, I think its good, but maybe there should be an if AwesomePrint.defaults.is_a? Hash
at the end. But there may be other better solutions, this is just from maybe a minute or two of looking at the code that merges it.
I've posted the fix: https://github.com/michaeldv/awesome_print/commit/a939430d166f900a54d5ff6032d92767deb19900
The defaults were expected to come from ~/.aprc but now I merge them if they're set somewhere else.
Thanks, Michael
Thanks, @michaeldv!
Hey there. If I set AP defaults within ~/.irbrc and then boot up an IRB session, the defaults have been set, but they aren't used: