summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-02-19 18:07:05 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2016-02-19 18:30:43 +0100
commit46fd485c58c8c72156a9ebe4ec1775a3e57934de (patch)
tree7e728cde6b610c70f817f551cd6444f927840612 /lib/api/entities.rb
parent55701d9c6c5b86274990c8b75b768330978a1f07 (diff)
downloadgitlab-ce-46fd485c58c8c72156a9ebe4ec1775a3e57934de.tar.gz
Fix API implementation
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index eaf42bee113..a3b5f1eb8d3 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -406,7 +406,7 @@ module API
repo_obj.artifacts_download_url
end
end
- expose :artifacts_file, using: BuildArtifactFile, if: lambda { |build, opts| build.artifacts? }
+ expose :artifacts_file, using: BuildArtifactFile, if: -> (build, opts) { build.artifacts? }
expose :commit, with: RepoCommit do |repo_obj, _options|
if repo_obj.respond_to?(:commit)
repo_obj.commit.commit_data