Skip to content

Commit

Permalink
Define model_name with route keys for the StorageManager model
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed Jun 4, 2018
1 parent a49e48a commit 781f7c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/models/manageiq/providers/storage_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 781f7c9

Please sign in to comment.