Calling #present? was causing a DB query to happen each time around the loop. We only wanted to check for nil as it's nil in the first loop around so there is no need for #present? |
||
|---|---|---|
| .. | ||
| applications | ||
| platforms | ||
| providers | ||
| cluster_spec.rb | ||
| clusters_hierarchy_spec.rb | ||
| group_spec.rb | ||
| kubernetes_namespace_spec.rb | ||
| project_spec.rb | ||