module Appsignal::Integrations::OwnershipIntegration

def around_change

accidentally overriding AppSignal's instrumentation.
to use the `around_change=` writer in their own code without
instead of by using the `around_change=` writer. This allows customers
Implement the `around_change` logic by monkey-patching the reader,
def around_change
  proc do |owner, block|
    OwnershipIntegrationHelper.set(Appsignal::Transaction.current, owner)
    original = super
    if original
      original.call(owner, block)
    else
      block.call
    end
  end
end