This is what would be required to get rid of the return if nil. Also IMO less magical, aka we're in control of the methods being called. This would allow us to get rid of the dump/load in favor of a more regular as_json approach? Anyway, food for thoughts, I don't mind either way.
This is what would be required to get rid of the
return if nil
. Also IMO less magical, aka we're in control of the methods being called. This would allow us to get rid of the dump/load in favor of a more regularas_json
approach? Anyway, food for thoughts, I don't mind either way./cc @tjoyal