diff --git a/.github/matrix.json b/.github/matrix.json index 81e37ac5f94b..f15a18dd6920 100644 --- a/.github/matrix.json +++ b/.github/matrix.json @@ -1,5 +1,5 @@ { "postgresql": ["12"], - "ruby": ["2.7"], + "ruby": ["2.7", "3.0"], "node": ["14"] } diff --git a/app/models/host.rb b/app/models/host.rb index 12d7d98593ee..5c71a671f2d1 100644 --- a/app/models/host.rb +++ b/app/models/host.rb @@ -12,7 +12,11 @@ def self.method_missing(method, *args, &block) end end if type.constantize.respond_to?(method, true) - type.constantize.send(method, *args, &block) + if method.to_s =~ /\Afind_in_(.*)\Z/ && args.size == 1 && args[0].is_a?(Hash) + type.constantize.send(method, **args[0], &block) + else + type.constantize.send(method, *args, &block) + end else super end