From 1abb83995fd7beff39db419fc8ce7c304cb7e4a6 Mon Sep 17 00:00:00 2001 From: Matt Larraz Date: Tue, 16 Apr 2024 19:06:09 -0400 Subject: [PATCH] Fix incorrect variable name --- lib/opensearch.rb | 2 +- lib/opensearch/dsl/search.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/opensearch.rb b/lib/opensearch.rb index 7f97f2daa..3ea553b16 100644 --- a/lib/opensearch.rb +++ b/lib/opensearch.rb @@ -49,7 +49,7 @@ def method_missing(name, *args, &block) end def respond_to_missing?(method_name, include_private = false) - name == :perform_request || super + method_name == :perform_request || super end private diff --git a/lib/opensearch/dsl/search.rb b/lib/opensearch/dsl/search.rb index 19c05e7ce..987820582 100644 --- a/lib/opensearch/dsl/search.rb +++ b/lib/opensearch/dsl/search.rb @@ -250,7 +250,7 @@ def method_missing(name, *args, &block) end def respond_to_missing?(method_name, include_private = false) - @options.respond_to?(name) || super + @options.respond_to?(method_name) || super end # Converts the search definition to a Hash