diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-10-04 00:13:13 +0300 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2017-10-04 06:09:48 +0300 |
commit | 1f54c9216f178e96010b28a74f04bae5848ef15d (patch) | |
tree | 7f5b63c6db133916be3cb20d94d30c0c64dc60d3 /app/serializers | |
parent | ccfe6860079c6c75ab5a1f831cd62af0e355331e (diff) |
Reduce method calls while evaluating Projects::MergeRequestsController#show.json
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/merge_request_entity.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/serializers/merge_request_entity.rb b/app/serializers/merge_request_entity.rb index 07650ce6f20..9c5b1a7d2a7 100644 --- a/app/serializers/merge_request_entity.rb +++ b/app/serializers/merge_request_entity.rb @@ -18,7 +18,6 @@ class MergeRequestEntity < IssuableEntity expose :closed_event, using: EventEntity # User entities - expose :author, using: UserEntity expose :merge_user, using: UserEntity # Diff sha's @@ -26,7 +25,6 @@ class MergeRequestEntity < IssuableEntity merge_request.diff_head_sha if merge_request.diff_head_commit end - expose :merge_commit_sha expose :merge_commit_message expose :head_pipeline, with: PipelineDetailsEntity, as: :pipeline |