diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2019-03-31 19:05:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-31 19:05:27 +0200 |
commit | 563bf5771fb8bf3c8458393cd5a42bab7a5b6f1e (patch) | |
tree | 385a040c662cf3f8981fac536ce6b6bacbd510f3 /actionview/lib/action_view/renderer | |
parent | 002684e36e813469c3585e193f0698784c88278b (diff) | |
parent | 6841d0cc6d19002f3f85343d582310756aadf2c1 (diff) | |
download | rails-563bf5771fb8bf3c8458393cd5a42bab7a5b6f1e.tar.gz rails-563bf5771fb8bf3c8458393cd5a42bab7a5b6f1e.tar.bz2 rails-563bf5771fb8bf3c8458393cd5a42bab7a5b6f1e.zip |
Merge pull request #35793 from jhawthorn/deprecate_layout_absolute_path
Deprecate render layout with an absolute path
Diffstat (limited to 'actionview/lib/action_view/renderer')
-rw-r--r-- | actionview/lib/action_view/renderer/template_renderer.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionview/lib/action_view/renderer/template_renderer.rb b/actionview/lib/action_view/renderer/template_renderer.rb index 60cb2ceafa..698f535b49 100644 --- a/actionview/lib/action_view/renderer/template_renderer.rb +++ b/actionview/lib/action_view/renderer/template_renderer.rb @@ -89,6 +89,7 @@ module ActionView when String begin if layout.start_with?("/") + ActiveSupport::Deprecation.warn "Rendering layouts from an absolute path is deprecated." @lookup_context.with_fallbacks.find_template(layout, nil, false, [], details) else @lookup_context.find_template(layout, nil, false, [], details) |