summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-08-22 02:21:37 +0900
committerShinya Maeda <shinya@gitlab.com>2017-09-04 21:10:34 +0900
commit03f72f0f419b7e05fe9207c90b92b02ef7291cd1 (patch)
tree944103f6d4c8bb2ed8dec2db36aeecf1b2b7b2f7 /lib/api/entities.rb
parent278ac9ed5db6b191b42b52457492e551759f9d7d (diff)
downloadgitlab-ce-03f72f0f419b7e05fe9207c90b92b02ef7291cd1.tar.gz
Add spec (Halfway)
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 09d7d9ad349..81cf7039260 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -819,7 +819,7 @@ module API
class Variable < Grape::Entity
expose :key, :value
- expose :protected?, as: :protected, if: -> (entity, options) { entity.respond_to?(protected?) }
+ expose :protected?, as: :protected, if: -> (entity, options) { entity.respond_to?(:protected?) }
end
class Pipeline < PipelineBasic