diff options
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/deployment_entity.rb | 1 | ||||
-rw-r--r-- | app/serializers/deployment_serializer.rb | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/app/serializers/deployment_entity.rb b/app/serializers/deployment_entity.rb index d610fbe0c8a..d9ade5d87e2 100644 --- a/app/serializers/deployment_entity.rb +++ b/app/serializers/deployment_entity.rb @@ -18,6 +18,7 @@ class DeploymentEntity < Grape::Entity end end + expose :created_at expose :tag expose :last? expose :user, using: UserEntity diff --git a/app/serializers/deployment_serializer.rb b/app/serializers/deployment_serializer.rb new file mode 100644 index 00000000000..4b4bf6cd526 --- /dev/null +++ b/app/serializers/deployment_serializer.rb @@ -0,0 +1,3 @@ +class DeploymentSerializer < BaseSerializer + entity DeploymentEntity +end |