Previous system used a bunch of if hash.key? :key_name nested 7 layers deep. I switched to dig then reverted to hash access for pre-2.3 compatibility.
This just rescues the NoMethodError from trying to build. Any exception here should really go to [], but I figured on the smallest scope of change for now.
Previous system used a bunch of
if hash.key? :key_name
nested 7 layers deep. I switched todig
then reverted to hash access for pre-2.3 compatibility.This just rescues the NoMethodError from trying to build. Any exception here should really go to
[]
, but I figured on the smallest scope of change for now.