Skip to content

Conversation

tenderlove
Copy link
Member

Gotta be honest, this is so I can make some hacks. Basically I would like an engine to specify where to find rescue templates, and currently there's no way to add search paths to the debug view lookup context. This commit turns the template path in to an array (that I plan to mutate, but nobody should do that besides me until we make an actual good API).

I added the dup in initialize so in case the array is accidentally mutated we don't leak memory.

Gotta be honest, this is so I can make some hacks.  Basically I would
like an engine to specify where to find rescue templates, and currently
there's no way to add search paths to the debug view lookup context.
This commit turns the template path in to an array (that I plan to
mutate, but nobody should do that besides me until we make an actual
good API).

I added the `dup` in `initialize` so in case the array is accidentally
mutated we don't leak memory.
@tenderlove tenderlove force-pushed the rescue-template-paths branch from 2deb8fc to 5c6e9d4 Compare September 23, 2022 22:25
@rails-bot rails-bot bot added the railties label Sep 23, 2022
@tenderlove tenderlove merged commit 08ef43e into main Sep 27, 2022
@tenderlove tenderlove deleted the rescue-template-paths branch September 27, 2022 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants