Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wortschack <mwortschack@gitlab.com>2018-09-18 11:43:19 +0300
committerMartin Wortschack <mwortschack@gitlab.com>2018-09-18 11:43:19 +0300
commit68ac430af9989fe4f93075e5bc426f8e2c55cf3d (patch)
tree52c99b3f7e9b30e4af226fb7cd37262d8d537403 /app/helpers/application_helper.rb
parentcecb0fdd7a0342574c134cd3ed9475debbfa3133 (diff)
Rename helper method
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 7846de9f481..604ddd55ff5 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -13,8 +13,8 @@ module ApplicationHelper
lookup_context.exists?(partial, [], true)
end
- def view_exists?(partial)
- lookup_context.exists?(partial, [], false)
+ def template_exists?(template)
+ lookup_context.exists?(template, [], false)
end
# Check if a particular controller is the current one