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
2 people authored and danidoni committed Mar 15, 2022
1 parent 10d6045 commit 2c8b2bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/app/lib/backend/remember_location.rb
Original file line number Diff line number Diff line change
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 2c8b2bf

Please sign in to comment.