lib/mongodb/graphite/agent/utils.rb in mongodb-graphite-agent-0.0.3 vs lib/mongodb/graphite/agent/utils.rb in mongodb-graphite-agent-0.0.4
- old
+ new
@@ -19,10 +19,10 @@
end
end
end
def self.to_hash(s)
- json_descent([], s).flatten
+ json_descent([], s).flatten.reduce Hash.new, :merge
end
end
end
end
end