Sha256: e37a06954f3010c4bd92d2ade5deadd07512799fd3b1c42a7a5e050c726e3376
Contents?: true
Size: 474 Bytes
Versions: 2
Compression:
Stored size: 474 Bytes
Contents
# frozen_string_literal: true Datadog::DI::Serializer.register(condition: lambda { |value| ActiveRecord::Base === value }) do |serializer, value, name:, depth:| # steep:ignore # steep thinks all of the arguments are nil here # steep:ignore:start value_to_serialize = { attributes: value.attributes, new_record: value.new_record?, } serializer.serialize_value(value_to_serialize, depth: depth ? depth - 1 : nil, type: value.class) # steep:ignore:end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
datadog-2.9.0 | lib/datadog/di/contrib/active_record.rb |
datadog-2.8.0 | lib/datadog/di/contrib/active_record.rb |