lib/faraday/options.rb in faraday-2.7.5 vs lib/faraday/options.rb in faraday-2.7.6
- old
+ new
@@ -172,9 +172,10 @@
raise ArgumentError, '#memoized must be called with a block'
end
memoized_attributes[key.to_sym] = block
class_eval <<-RUBY, __FILE__, __LINE__ + 1
+ remove_method(key) if method_defined?(key, false)
def #{key}() self[:#{key}]; end
RUBY
end
def self.memoized_attributes