Sha256: 070e94dfc7b8e5b14b3c9671e545aa1918b238e80fdb2e5f299c397f1febf891

Contents?: true

Size: 472 Bytes

Versions: 270

Compression:

Stored size: 472 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  class Hooks
    # @api private
    class DataMapperHook < Appsignal::Hooks::Hook
      register :data_mapper

      def dependencies_present?
        defined?(::DataMapper) &&
          defined?(::DataObjects::Connection)
      end

      def install
        require "appsignal/integrations/data_mapper"
        ::DataObjects::Connection.send(:include, Appsignal::Hooks::DataMapperLogListener)
      end
    end
  end
end

Version data entries

270 entries across 270 versions & 1 rubygems

Version Path
appsignal-3.3.11-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.3.11 lib/appsignal/hooks/data_mapper.rb
appsignal-3.4.0-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.4.0 lib/appsignal/hooks/data_mapper.rb
appsignal-3.3.10-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.3.10 lib/appsignal/hooks/data_mapper.rb
appsignal-3.3.9-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.3.9 lib/appsignal/hooks/data_mapper.rb
appsignal-3.3.8-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.3.8 lib/appsignal/hooks/data_mapper.rb
appsignal-3.3.7-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.3.7 lib/appsignal/hooks/data_mapper.rb
appsignal-3.3.6-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.3.6 lib/appsignal/hooks/data_mapper.rb
appsignal-3.3.5-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.3.5 lib/appsignal/hooks/data_mapper.rb
appsignal-3.3.4-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.3.4 lib/appsignal/hooks/data_mapper.rb
appsignal-3.3.3-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.3.3 lib/appsignal/hooks/data_mapper.rb