Skip to content

Commit

Permalink
Add resource_class for DiscoveredHostsController
Browse files Browse the repository at this point in the history
Fix error on Discovered host detail page:

unable to detect breadcrumb title name in for discovered_hosts, defaulting to name
<NameError> Could not find resource class for resource discovered_host
  • Loading branch information
stejskalleos committed Nov 2, 2023
1 parent a928e42 commit 8e7c637
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/discovered_hosts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ def submit_multiple_auto_provision
end
end

def resource_class
Host::Discovered
end

private

def setup_host_class_variables
Expand Down

0 comments on commit 8e7c637

Please sign in to comment.