lib/ahoy/engine.rb in ahoy_matey-2.2.1 vs lib/ahoy/engine.rb in ahoy_matey-3.0.0
- old
+ new
@@ -1,7 +1,9 @@
module Ahoy
class Engine < ::Rails::Engine
initializer "ahoy", after: "sprockets.environment" do
+ Ahoy.logger ||= Rails.logger
+
# allow Devise to be loaded after Ahoy
require "ahoy/warden" if defined?(Warden)
next unless Ahoy.quiet