From 820ff25f25b0509464be15d223777bc05933cdf6 Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin Date: Wed, 23 May 2018 16:45:06 +0800 Subject: Add a comment to link to the doc about render_if_exists --- app/helpers/application_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 44dcb19ad40..f5d94ad96a1 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -2,6 +2,7 @@ require 'digest/md5' require 'uri' module ApplicationHelper + # See https://docs.gitlab.com/ee/development/ee_features.html#code-in-app-views def render_if_exists(partial, locals = {}) render(partial, locals) if lookup_context.exists?(partial, [], true) end -- cgit v1.2.1