lib/elasticsearch/model/response/aggregations.rb in elasticsearch-model-2.0.1 vs lib/elasticsearch/model/response/aggregations.rb in elasticsearch-model-5.0.0

- old
+ new

@@ -1,9 +1,11 @@ module Elasticsearch module Model module Response class Aggregations < Hashie::Mash + disable_warnings if respond_to?(:disable_warnings) + def initialize(attributes={}) __redefine_enumerable_methods super(attributes) end # Fix the problem of Hashie::Mash returning unexpected values for `min` and `max` methods