keys.each do |key| val = delete(key) val.stringify_keys! if val.is_a?(Hash) self[key.to_s] = val end end end end https://github.com/palkan/anyway_config
Refinements here in # order not to expose our internal method using Module.new { refine Array do alias :orig_sum :sum end } #… end https://github.com/rails/rails/pull/27363/files