diff options
author | Go MAEDA <maeda@farend.jp> | 2023-11-19 07:41:21 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-11-19 07:41:21 +0000 |
commit | 291d23e5fe8b1386a844cd5657dd85260fbe1f99 (patch) | |
tree | 9a4f830c28de3118e08b1368ff8bdacbc0e2b157 /app/helpers | |
parent | d6b86ca53d67cbeaf2455e325507710ec7c8c4b0 (diff) | |
download | redmine-291d23e5fe8b1386a844cd5657dd85260fbe1f99.tar.gz redmine-291d23e5fe8b1386a844cd5657dd85260fbe1f99.zip |
Deprecate unused ApplicationHelper#render_if_exist (#39527).
git-svn-id: https://svn.redmine.org/redmine/trunk@22466 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a1d989e25..4c130e2fa 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1837,6 +1837,10 @@ module ApplicationHelper end def render_if_exist(options = {}, locals = {}, &block) + # Remove test_render_if_exist_should_be_render_partial and test_render_if_exist_should_be_render_nil + # along with this method in Redmine 7.0 + ActiveSupport::Deprecation.warn 'ApplicationHelper#render_if_exist is deprecated and will be removed in Redmine 7.0.' + if options[:partial] if lookup_context.exists?(options[:partial], lookup_context.prefixes, true) render(options, locals, &block) |