You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let `EmptyTemplateResolver` creating instances of either
`EmptyTemplateResolver::ResolverDecorator` or
`EmptyTemplateResolver::FileSystemResolver`, depending on whether the given path
is an `ActionView::Resolver` instance or not.
The new `EmptyTemplateResolver::ResolverDecorator` class simply delegates all
method calls to its given resolver, checks the return values, and changes
collections of `ActionView::Template` instances into templates that render with
`EmptyTemplateHandler`.
The alternative was to implement both `#find_all` and `#find_all_anywhere`. The
latter is only present since Rails 4.2.5.1, and the former has different arity
in different Rails versions.
0 commit comments