refs #5655 - to receive correct paths actions JSON

depends on Katello/katello#4579
Why not just use `map`?

```ruby
data["_pretty_path"] = data["environments"].map { |env| env["name"] }.join(" >> ")
```

Also, I typically recommend avoiding method calls on multiline blocks as they're easily overlooked.