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.0.21.alpha.1-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.21.alpha.1 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.20-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.20 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.19-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.19 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.18-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.18 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.17-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.17 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.16-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.16 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.15-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.15 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.14-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.14 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.13-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.13 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.12-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.12 lib/appsignal/hooks/data_mapper.rb