diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-05-23 16:45:06 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-05-23 16:45:06 +0800 |
commit | 820ff25f25b0509464be15d223777bc05933cdf6 (patch) | |
tree | 86b7ebea48c4a64b7b6a948bfcf2c59f27ad82be | |
parent | dfce11d05037abe68cd9194dba842966f6ce15fd (diff) | |
download | gitlab-ce-ce-5949-render_optional.tar.gz |
Add a comment to link to the doc about render_if_existsce-5949-render_optional
-rw-r--r-- | app/helpers/application_helper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |