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
# EE
expose :environment_scope, if: ->(variable, options) {
if variable.respond_to?(:projects)
if variable.respond_to?(:project)
variable.project
else
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