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.3-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.3 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.2-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.2 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.1-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.1 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.0-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.0 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.0.rc.1 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.0.rc.1-java lib/appsignal/hooks/data_mapper.rb
appsignal-2.11.9-java lib/appsignal/hooks/data_mapper.rb
appsignal-2.11.9 lib/appsignal/hooks/data_mapper.rb
appsignal-2.11.8-java lib/appsignal/hooks/data_mapper.rb
appsignal-2.11.8 lib/appsignal/hooks/data_mapper.rb
appsignal-2.11.7 lib/appsignal/hooks/data_mapper.rb
appsignal-2.11.7-java lib/appsignal/hooks/data_mapper.rb
appsignal-2.11.6 lib/appsignal/hooks/data_mapper.rb
appsignal-2.11.6-java lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.0.beta.1 lib/appsignal/hooks/data_mapper.rb
appsignal-3.0.0.beta.1-java lib/appsignal/hooks/data_mapper.rb