A hanami slice in a Rails app

Indeed, it looks like you can add a prepare_container block to the App class definition to keep Hanami out of app/ and to prevent Zeitwerk from raising a conflicting_directory error.

  class App < Hanami::App
    prepare_container do |container|
      container.autoloader.ignore("app")
    end
  end

We should document this, or perhaps check to see if any other Zeitwerk loaders have app/ as a root so we can avoid this situation in the future.

Please keep us updated on any other configuration tweaks you have to make, I’d love to document them and streamline using Hanami with other Ruby frameworks.