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:
authorcharlieablett <cablett@gitlab.com>2019-06-06 11:13:18 +0300
committercharlieablett <cablett@gitlab.com>2019-06-06 13:13:14 +0300
commit27dd0b8e3609aae92b8e59dd202a999fc1db5a4e (patch)
tree29728e4b5e439b1f284cb6a4f31d73749e808c25 /app/serializers/board_simple_entity.rb
parent7468ed5fd28d08907384787d657d2bbe9af77411 (diff)
Use serialization for project boards
- Add serializers and Grape::Entity - Replace to_json - Add specs
Diffstat (limited to 'app/serializers/board_simple_entity.rb')
-rw-r--r--app/serializers/board_simple_entity.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/serializers/board_simple_entity.rb b/app/serializers/board_simple_entity.rb
new file mode 100644
index 00000000000..f297d993e27
--- /dev/null
+++ b/app/serializers/board_simple_entity.rb
@@ -0,0 +1,5 @@
+# frozen_string_literal: true
+
+class BoardSimpleEntity < Grape::Entity
+ expose :id
+end