summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-12-21 14:03:15 +0100
committerBob Van Landuyt <bob@vanlanduyt.co>2017-12-21 15:35:54 +0100
commitc27c65f97ac6c02a73661ebd66e728b6fd4a6039 (patch)
treee5dc96bc62a0e30070c87da75dde88ebc2c69f81 /app/serializers
parent3ee5fd156e3465a1e1c04b2b321c62b577496ee8 (diff)
downloadgitlab-ce-c27c65f97ac6c02a73661ebd66e728b6fd4a6039.tar.gz
Fall back to the `MergeRequestWidgetEntity`
When no serializer was passed.
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/merge_request_serializer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/merge_request_serializer.rb b/app/serializers/merge_request_serializer.rb
index 52eb30d688a..caf193bdae3 100644
--- a/app/serializers/merge_request_serializer.rb
+++ b/app/serializers/merge_request_serializer.rb
@@ -7,7 +7,7 @@ class MergeRequestSerializer < BaseSerializer
case opts[:serializer]
when 'basic', 'sidebar'
MergeRequestBasicEntity
- when 'widget'
+ else # It's 'widget'
MergeRequestWidgetEntity
end