Don't create conditional routes as here:
|
unless ForemanRhCloud.with_local_advisor_engine? |
This may confuse tests, if the configuration is different on your local setup.
Instead it would be better to move this check to a before_action filter and then abort with 404 in case we don't want the route to be available,