mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 17:26:06 +01:00
Deprecate unused ApplicationHelper#render_if_exist (#39527).
git-svn-id: https://svn.redmine.org/redmine/trunk@22466 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user