Fix module usage #2
chrisdmacrae
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The Problem
When using
HotViewComponent
with a nested module, the ActionView resolution fails.I.e:
Then the following fails:
The awful solution is to:
Create
app/components/my_name_space.rb
:This is because the resolution is gate-checked on the module before ActionView and fails too early, missing the DSL.
Beta Was this translation helpful? Give feedback.
All reactions