Skip to content

Commit 026d502

Browse files
committed
[MODEL] Inherit from HashWrapper for disabling warnings
1 parent c22dae8 commit 026d502

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

elasticsearch-model/lib/elasticsearch/model/response/aggregations.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module Elasticsearch
22
module Model
33
module Response
44

5-
class Aggregations < Hashie::Mash
5+
class Aggregations < HashWrapper
66
disable_warnings if respond_to?(:disable_warnings)
77

88
def initialize(attributes={})

elasticsearch-model/lib/elasticsearch/model/response/suggestions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module Elasticsearch
22
module Model
33
module Response
44

5-
class Suggestions < Hashie::Mash
5+
class Suggestions < HashWrapper
66
disable_warnings if respond_to?(:disable_warnings)
77

88
def terms

0 commit comments

Comments
 (0)