diff options
Diffstat (limited to 'app/presenters/snippet_presenter.rb')
-rw-r--r-- | app/presenters/snippet_presenter.rb | 2 |
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 |