cartodb-4.42/config/initializers/hash.rb

7 lines
112 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
class Hash
def convert_nulls
self.inject({}){|h,(k,v)| h[k] = (v == "null" ? nil : v); h }
end
end