Commit 57fbfeb6 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Fix typo. This is also why using respond_to? is bad

parent e6cae11f
...@@ -863,7 +863,7 @@ module API ...@@ -863,7 +863,7 @@ module API
# EE # EE
expose :environment_scope, if: ->(variable, options) { expose :environment_scope, if: ->(variable, options) {
if variable.respond_to?(:projects) if variable.respond_to?(:project)
variable.project variable.project
else else
variable.group variable.group
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment