lib/opentelemetry/instrumentation/action_view/instrumentation.rb in opentelemetry-instrumentation-action_view-0.2.0 vs lib/opentelemetry/instrumentation/action_view/instrumentation.rb in opentelemetry-instrumentation-action_view-0.2.1
- old
+ new
@@ -17,16 +17,20 @@
present do
defined?(::ActionView)
end
compatible do
- Gem.loaded_specs['actionview'].version >= MINIMUM_VERSION
+ gem_version >= MINIMUM_VERSION
end
option :disallowed_notification_payload_keys, default: [], validate: :array
option :notification_payload_transform, default: nil, validate: :callable
private
+
+ def gem_version
+ ::ActionView.version
+ end
def require_dependencies
require_relative 'railtie'
end
end