lib/appsignal/hooks/data_mapper.rb in appsignal-2.1.0.alpha.3 vs lib/appsignal/hooks/data_mapper.rb in appsignal-2.1.0.beta.1
- old
+ new
@@ -3,14 +3,14 @@
class DataMapperHook < Appsignal::Hooks::Hook
register :data_mapper
def dependencies_present?
defined?(::DataMapper) &&
- defined?(::DataObjects::Connection)
+ defined?(::DataObjects::Connection)
end
def install
- require 'appsignal/integrations/data_mapper'
+ require "appsignal/integrations/data_mapper"
::DataObjects::Connection.send(:include, Appsignal::Hooks::DataMapperLogListener)
end
end
end
end