Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions lib/simple_navigation/adapters.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# frozen_string_literal: true

module SimpleNavigation
# Explicit namespace for the framework adapters living in adapters/.
#
# Without this file Zeitwerk would infer SimpleNavigation::Adapters as an
# implicit namespace from the adapters/ directory. That inference is not
# resolved reliably on every runtime (e.g. JRuby, see issue #237), so the
# namespace is defined explicitly here.
module Adapters
end
end
12 changes: 12 additions & 0 deletions lib/simple_navigation/renderer.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# frozen_string_literal: true

module SimpleNavigation
# Explicit namespace for the renderers living in renderer/.
#
# Without this file Zeitwerk would infer SimpleNavigation::Renderer as an
# implicit namespace from the renderer/ directory. That inference is not
# resolved reliably on every runtime (e.g. JRuby, see issue #237), so the
# namespace is defined explicitly here.
module Renderer
end
end