Skip to content

Commit

Permalink
Fix separation of positional and keyword arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
hennevogel and saraycp committed Mar 14, 2022
1 parent dad266f commit 3411679
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/app/lib/backend/remember_location.rb
Expand Up @@ -9,10 +9,10 @@ def singleton_method_added(method_name)

filtering << method_name

define_singleton_method(method_name) do |*args, &block|
define_singleton_method(method_name) do |*args, **kwargs, &block|
Thread.current[:_influxdb_obs_backend_api_method] = method_name.to_s
Thread.current[:_influxdb_obs_backend_api_module] = name
original_method.call(*args, &block)
original_method.call(*args, **kwargs, &block)
ensure
Thread.current[:_influxdb_obs_backend_api_method] = nil
Thread.current[:_influxdb_obs_backend_api_module] = nil
Expand Down

0 comments on commit 3411679

Please sign in to comment.