From 781f7c9a77a948bf50a93e5c4564fada208fc6f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Hal=C3=A1sz?= Date: Mon, 4 Jun 2018 15:24:48 +0200 Subject: [PATCH] Define model_name with route keys for the StorageManager model --- app/models/manageiq/providers/storage_manager.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/models/manageiq/providers/storage_manager.rb b/app/models/manageiq/providers/storage_manager.rb index ec8995b1796..6ba9d614007 100644 --- a/app/models/manageiq/providers/storage_manager.rb +++ b/app/models/manageiq/providers/storage_manager.rb @@ -15,5 +15,10 @@ class StorageManager < ManageIQ::Providers::BaseManager :foreign_key => :parent_ems_id, :class_name => "ManageIQ::Providers::BaseManager", :autosave => true + + class << model_name + define_method(:route_key) { "ems_storages" } + define_method(:singular_route_key) { "ems_storage" } + end end end