lib/ddtrace/contrib/active_support/patcher.rb in ddtrace-0.29.1 vs lib/ddtrace/contrib/active_support/patcher.rb in ddtrace-0.30.0
- old
+ new
@@ -8,21 +8,15 @@
module Patcher
include Contrib::Patcher
module_function
- def patched?
- done?(:active_support)
+ def target_version
+ Integration.version
end
def patch
- do_once(:active_support) do
- begin
- Cache::Patcher.patch
- rescue StandardError => e
- Datadog::Tracer.log.error("Unable to apply Active Support integration: #{e}")
- end
- end
+ Cache::Patcher.patch
end
end
end
end
end