Sha256: a7a521cef1ac0510068f495c102af622e639d5c99f9f150ec8c0b0079b4b78c5

Contents?: true

Size: 441 Bytes

Versions: 38

Compression:

Stored size: 441 Bytes

Contents

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

38 entries across 38 versions & 1 rubygems

Version Path
appsignal-2.5.3-java lib/appsignal/hooks/data_mapper.rb
appsignal-2.5.3 lib/appsignal/hooks/data_mapper.rb
appsignal-2.5.3.alpha.2 lib/appsignal/hooks/data_mapper.rb
appsignal-2.5.3.alpha.2-java lib/appsignal/hooks/data_mapper.rb
appsignal-2.5.3.alpha.1 lib/appsignal/hooks/data_mapper.rb
appsignal-2.5.3.alpha.1-java lib/appsignal/hooks/data_mapper.rb
appsignal-2.5.2-java lib/appsignal/hooks/data_mapper.rb
appsignal-2.5.2 lib/appsignal/hooks/data_mapper.rb
appsignal-2.5.1-java lib/appsignal/hooks/data_mapper.rb
appsignal-2.5.1 lib/appsignal/hooks/data_mapper.rb
appsignal-2.5.1.beta.1-java lib/appsignal/hooks/data_mapper.rb
appsignal-2.5.1.beta.1 lib/appsignal/hooks/data_mapper.rb
appsignal-2.5.0-java lib/appsignal/hooks/data_mapper.rb
appsignal-2.5.0 lib/appsignal/hooks/data_mapper.rb
appsignal-2.5.0.beta.1-java lib/appsignal/hooks/data_mapper.rb
appsignal-2.5.0.beta.1 lib/appsignal/hooks/data_mapper.rb
appsignal-2.5.0.alpha.1-java lib/appsignal/hooks/data_mapper.rb
appsignal-2.5.0.alpha.1 lib/appsignal/hooks/data_mapper.rb
appsignal-2.4.3 lib/appsignal/hooks/data_mapper.rb
appsignal-2.4.2 lib/appsignal/hooks/data_mapper.rb