Skip to content
  • John Hawthorn's avatar
    1e25f021
    Ignore interpolated strings in DependencyTracker · 1e25f021
    John Hawthorn authored
    ActionView::DependencyTracker looks through ERB templates using a regex
    to find render calls. Previously this would incorrectly pick up
    interpolated strings, like `render "foo/#{bar}"`.
    
    This does not attempt to completely correct DependencyTracker, we can't
    parse Ruby accurately with a regex, but should avoid a relatively common
    case that previously was generating warnings.
    1e25f021
    Ignore interpolated strings in DependencyTracker
    John Hawthorn authored
    ActionView::DependencyTracker looks through ERB templates using a regex
    to find render calls. Previously this would incorrectly pick up
    interpolated strings, like `render "foo/#{bar}"`.
    
    This does not attempt to completely correct DependencyTracker, we can't
    parse Ruby accurately with a regex, but should avoid a relatively common
    case that previously was generating warnings.
Loading