diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-04 13:08:49 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-14 12:48:15 +0100 |
commit | a7f99b67a0bf1160f41ebf4dc92c618eb13a7a10 (patch) | |
tree | faba38ae6a6fcadb57fe564891912d37bed462ba /app/controllers/projects/artifacts_controller.rb | |
parent | df41148662142ce20a77b092665f48dd4dfa7bfb (diff) | |
download | gitlab-ce-a7f99b67a0bf1160f41ebf4dc92c618eb13a7a10.tar.gz |
Extract artifacts metadata implementation to separate class
Diffstat (limited to 'app/controllers/projects/artifacts_controller.rb')
-rw-r--r-- | app/controllers/projects/artifacts_controller.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/controllers/projects/artifacts_controller.rb b/app/controllers/projects/artifacts_controller.rb index 5bd0c8cd780..ee1b1f375dc 100644 --- a/app/controllers/projects/artifacts_controller.rb +++ b/app/controllers/projects/artifacts_controller.rb @@ -16,10 +16,7 @@ class Projects::ArtifactsController < Projects::ApplicationController def browse return render_404 unless build.artifacts? - - current_path = params[:path] ? "./#{params[:path]}/" : './' - paths, metadata = build.artifacts_metadata_for_path(current_path) - @path = Gitlab::StringPath.new(current_path, paths, metadata) + @path = build.artifacts_metadata_string_path(params[:path] || './') end private |