equalizer
equalizer copied to clipboard
Allow #inspect method to be disabled with a switch
Defining equality based only on e.g. an id attribute, even when other attributes exist on a class, is a common pattern (see ActiveRecord). But in this case, Equalizer defines #inspect to show only the keys provided to it.
This patch allows you to disable this behaviour and keep the original #inspect method.