Module: Tina4::ImportHelper::RequireHook

Defined in:
lib/tina4/import_helper.rb

Overview

Hook 2 -- require "tina4/". Runs BEFORE the real Kernel#require via Module#prepend. On success, indistinguishable from plain require. On failure, only rewrites the LoadError when:

* the requested path starts with "tina4/", AND
* the LoadError's own #path is nil or equal to that requested path.

The second condition is the masking gate: a nested require "definitely_missing_gem" inside a loaded tina4/*.rb raises a LoadError whose #path is that inner name — we MUST propagate it unchanged, not replace it with a spurious "did you mean tina4/router?" hint.