summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-06-21 18:48:05 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-06-21 18:48:05 +0300
commit44fe4f63f9ea86253b386561a4d439227c53f50b (patch)
tree8888f463194b258815ffbcf5ea8caa751c5774a9 /lib/api/entities.rb
parentdcf8304b6c2ac71ef9ffaa57c9cf39159c4af69e (diff)
parent179783f1ce0ce16913199a84e65ebea5fb4422ec (diff)
downloadgitlab-ce-44fe4f63f9ea86253b386561a4d439227c53f50b.tar.gz
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 0ee96d4c67b..5a23a18fe9c 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -445,11 +445,7 @@ module API
expose :created_at, :started_at, :finished_at
expose :user, with: User
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
- end
- end
+ expose :commit, with: RepoCommit
expose :runner, with: Runner
end