Skip to content
  • Aaron Patterson's avatar
    5c6e9d48
    Keep rescue template paths in an array · 5c6e9d48
    Aaron Patterson authored
    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.
    5c6e9d48
    Keep rescue template paths in an array
    Aaron Patterson authored
    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.
Loading