1
0
mirror of https://github.com/meineerde/rackstash.git synced 2026-01-31 17:27:13 +00:00

Resolve class ambiguity in Hash and Array constructors

This commit is contained in:
Holger Just 2017-02-02 22:58:23 +01:00
parent 94298fbbfd
commit 0292a7eacb
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ module Rackstash
end
def self.Array(array)
Array.new.concat(array)
Rackstash::Fields::Array.new.concat(array)
end
end
end

View File

@ -114,7 +114,7 @@ module Rackstash
end
def self.Hash(raw, forbidden_keys: EMPTY_SET)
Hash.new(forbidden_keys: forbidden_keys).merge!(raw)
Rackstash::Fields::Hash.new(forbidden_keys: forbidden_keys).merge!(raw)
end
end
end