I used `resource_scope` and moved `authorized(:view_hosts) to the link of `hosts_scope =` since there was a test failure if it was defined like the others.