diff options
author | Toon Claes <toon@gitlab.com> | 2019-02-28 19:57:34 +0100 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2019-02-28 19:57:34 +0100 |
commit | 62d7990b9bb30cf33ed87017c5c633d1cccc75c2 (patch) | |
tree | c3e1b69c58a412ba1c6f50a0337a23d9f9d6e1a4 /app/helpers/hooks_helper.rb | |
parent | f6453eca992a9c142268e78ac782cef98110d183 (diff) | |
download | gitlab-ce-tc-standard-gem.tar.gz |
Ran standardrb --fix on the whole codebasetc-standard-gem
Inspired by https://twitter.com/searls/status/1101137953743613952 I
decided to try https://github.com/testdouble/standard on our codebase.
It's opinionated, but at least it's a _standard_.
Diffstat (limited to 'app/helpers/hooks_helper.rb')
-rw-r--r-- | app/helpers/hooks_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/hooks_helper.rb b/app/helpers/hooks_helper.rb index c4b39939192..ca3e5097d5b 100644 --- a/app/helpers/hooks_helper.rb +++ b/app/helpers/hooks_helper.rb @@ -8,11 +8,11 @@ module HooksHelper test_project_hook_path(project, hook, trigger: trigger) when SystemHook test_admin_hook_path(hook, trigger: trigger) - end + end - trigger_human_name = trigger.to_s.tr('_', ' ').camelize + trigger_human_name = trigger.to_s.tr("_", " ").camelize - link_to path, rel: 'nofollow', method: :post do + link_to path, rel: "nofollow", method: :post do content_tag(:span, trigger_human_name) end end |