Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2017-04-06 15:12:12 +0300
committerRémy Coutable <remy@rymai.me>2017-04-14 16:20:55 +0300
commitac0146a08eb2ec6c23b46ea014376b7a70a21415 (patch)
tree447f113a087fe5c001e4b3a6b441ef9ac65680c0 /app/serializers/cohorts_entity.rb
parent61eaf4fe1755799c42e474019759e3859e6b2926 (diff)
Use serializer for formatting cohorts data
Diffstat (limited to 'app/serializers/cohorts_entity.rb')
-rw-r--r--app/serializers/cohorts_entity.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/serializers/cohorts_entity.rb b/app/serializers/cohorts_entity.rb
new file mode 100644
index 00000000000..98f5995ba6f
--- /dev/null
+++ b/app/serializers/cohorts_entity.rb
@@ -0,0 +1,4 @@
+class CohortsEntity < Grape::Entity
+ expose :months_included
+ expose :cohorts, using: CohortEntity
+end