💡 💎 Ruby protip: do not implement `to_hash` as a method for dumping an object to a hash. This is a special method that Ruby uses internally in various places. One example is `**` operator which will call `to_hash` implicitly. This can cause really strange behavior and bugs!
@solnic any example of the strange behavior? On the screenshot it looks like it suppose to be.
@opti we had a discussion about this on linkedin :)
@solnic @opti Would you consider the alternative to be `to_h` or the Railsism `as_hash`? Or in your mind is it "it depends"? :)
@vosechu @opti `to_h` is the conventional method name that should be used :)