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.11-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.11 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.10-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.10 lib/appsignal/hooks/data_mapper.rb
appsignal-2.11.10-java lib/appsignal/hooks/data_mapper.rb
appsignal-2.11.10 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.9-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.9 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.8-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.8 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.7-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.7 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.6-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.6 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.5-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.5 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.4-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.4 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.4.alpha.1-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.4.alpha.1 lib/appsignal/hooks/data_mapper.rb