Skip to content

Commit

Permalink
Fix define_method strategy
Browse files Browse the repository at this point in the history
* Remove define_method arg
* Use name instead of __method__
  • Loading branch information
kaylareopelle committed Feb 24, 2023
1 parent edd3378 commit 236788a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/new_relic/agent/http_clients/abstract.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ module HTTPClients
# @api public
class AbstractRequest
[:[], :[]=, :type, :host_from_header, :host, :method, :headers, :uri].each do |name|
define_method "#{name}" do |i|
not_implemented(__method__)
define_method("#{name}") do
not_implemented(name)
end
end

Expand Down

0 comments on commit 236788a

Please sign in to comment.