Skip to content

Commit

Permalink
Merge pull request ManageIQ#17513 from skateman/storage-routes
Browse files Browse the repository at this point in the history
Define model_name with route keys for the StorageManager model
  • Loading branch information
agrare authored Jun 4, 2018
2 parents e55a635 + 781f7c9 commit 086c465
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 086c465

Please sign in to comment.