lib/memolog/init.rb in memolog-0.2.0 vs lib/memolog/init.rb in memolog-0.2.1
- old
+ new
@@ -9,10 +9,10 @@
private
def init_rails!
return unless defined?(Rails) && Memolog.config.initializers.include?(:rails)
- require "memolog/railtie"
+ Rails.application.middleware.insert_before(0, Memolog::Middleware)
end
def init_sentry!
return unless defined?(Sentry::Scope) && Memolog.config.initializers.include?(:sentry)
Sentry::Scope.prepend(Memolog::SentryScopeExtension)