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:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-12-13 12:08:01 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-13 12:08:01 +0300
commit17b91a3c6ab73fff087e91665e9afb8046cbf045 (patch)
tree04655a8630478d9846571875f69469f018d4bdcc /app/presenters
parentb3db40398ce9ad335270617e834fde96d46f90ea (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/presenters')
-rw-r--r--app/presenters/snippet_presenter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/presenters/snippet_presenter.rb b/app/presenters/snippet_presenter.rb
index ca8ae8d60c4..37c9ebd3305 100644
--- a/app/presenters/snippet_presenter.rb
+++ b/app/presenters/snippet_presenter.rb
@@ -30,6 +30,6 @@ class SnippetPresenter < Gitlab::View::Presenter::Delegated
end
def ability_name(ability_prefix)
- "#{ability_prefix}_#{snippet.class.underscore}".to_sym
+ "#{ability_prefix}_#{snippet.to_ability_name}".to_sym
end
end