equalizer icon indicating copy to clipboard operation
equalizer copied to clipboard

Allow #inspect method to be disabled with a switch

Open markprzepiora opened this issue 8 years ago • 0 comments

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.

markprzepiora avatar May 18 '17 21:05 markprzepiora