```ruby
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
```

Move to prepare out of initializer
user
```ruby
module SuckerPunch
  class Railtie < ::Rails::Railtie
    initializer "sucker_punch.logger" do
      SuckerPunch.logger = Rails.logger

    end

    config.to_prepare do
      Celluloid::Actor.clear_registry
    end
  end
end
```
assistant