2 3 4 5 6 7 8 9 10 11 12
# File 'lib/ext.rb', line 2 def recursively_symbolize_keys! self.symbolize_keys! self.values.each do |v| if v.is_a? Hash v.recursively_symbolize_keys! elsif v.is_a? Array v.recursively_symbolize_keys! end end self end