looking at this again, I would simply add at the begining:

```ruby
return Host::Managed if params[:type].blank?