summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
authorMiranda Fluharty <mfluharty@gitlab.com>2019-03-27 19:13:55 +0000
committerKamil TrzciƄski <ayufan@ayufan.eu>2019-03-27 19:13:55 +0000
commitfc8f4b62f887abbc02e2c21b7275f53b51a5bad2 (patch)
tree3644afa753f4fe855302342bc7f2e56bf17f80e3 /app/serializers
parent95325c6ab7343f5c241fe63b3e0e782372e93245 (diff)
downloadgitlab-ce-fc8f4b62f887abbc02e2c21b7275f53b51a5bad2.tar.gz
Scaffold UI elements for minimal version
Add a masked switch to variable rows Copy some behavior from the protected switch
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/group_variable_entity.rb1
-rw-r--r--app/serializers/variable_entity.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/app/serializers/group_variable_entity.rb b/app/serializers/group_variable_entity.rb
index 0edab4a3092..19c5fa26f34 100644
--- a/app/serializers/group_variable_entity.rb
+++ b/app/serializers/group_variable_entity.rb
@@ -6,4 +6,5 @@ class GroupVariableEntity < Grape::Entity
expose :value
expose :protected?, as: :protected
+ expose :masked?, as: :masked
end
diff --git a/app/serializers/variable_entity.rb b/app/serializers/variable_entity.rb
index 85cf367fe51..4d48e13cfca 100644
--- a/app/serializers/variable_entity.rb
+++ b/app/serializers/variable_entity.rb
@@ -6,4 +6,5 @@ class VariableEntity < Grape::Entity
expose :value
expose :protected?, as: :protected
+ expose :masked?, as: :masked
end