module SuckerPunch
  class Railtie < ::Rails::Railtie
    initializer "sucker_punch.logger" do
      SuckerPunch.logger = Rails.logger
    end
  end
end

module SuckerPunch
  class Railtie < ::Rails::Railtie
    initializer "sucker_punch.logger" do
      SuckerPunch.logger = Rails.logger

      ActionDispatch::Reloader.to_prepare do
        Celluloid::Actor.clear_registry
      end
    end
  end
end

Clear registry when Rails reloader is invoked
Clear registry when Rails reloader is invoked
