summaryrefslogtreecommitdiff
path: root/app/helpers/gitlab_routing_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/gitlab_routing_helper.rb')
-rw-r--r--app/helpers/gitlab_routing_helper.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/helpers/gitlab_routing_helper.rb b/app/helpers/gitlab_routing_helper.rb
index 04cf43be452..0ac4d0b08a0 100644
--- a/app/helpers/gitlab_routing_helper.rb
+++ b/app/helpers/gitlab_routing_helper.rb
@@ -154,17 +154,17 @@ module GitlabRoutingHelper
# Artifacts
def artifacts_action_path(path, project, build)
- action, path_params = path.split('/', 2)
+ action, path_params = path.split("/", 2)
args = [project, build, path_params]
case action
- when 'download'
+ when "download"
download_project_job_artifacts_path(*args)
- when 'browse'
+ when "browse"
browse_project_job_artifacts_path(*args)
- when 'file'
+ when "file"
file_project_job_artifacts_path(*args)
- when 'raw'
+ when "raw"
raw_project_job_artifacts_path(*args)
end
end