Skip to content

Commit

Permalink
[rails6][CloudManager] Use .module_parent
Browse files Browse the repository at this point in the history
.parent is deprecated in Rails 6, so use it's replacement .module_parent
  • Loading branch information
NickLaMuro committed Nov 4, 2020
1 parent 648d8d2 commit e0d9f6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/manageiq/providers/openstack/cloud_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class ManageIQ::Providers::Openstack::CloudManager < ManageIQ::Providers::CloudM

supports :provisioning
supports :cloud_tenant_mapping do
if defined?(self.class.parent::CloudManager::CloudTenant) && !tenant_mapping_enabled?
if defined?(self.class.module_parent::CloudManager::CloudTenant) && !tenant_mapping_enabled?
unsupported_reason_add(:cloud_tenant_mapping, _("Tenant mapping is disabled on the Provider"))
elsif !defined?(self.class.parent::CloudManager::CloudTenant)
elsif !defined?(self.class.module_parent::CloudManager::CloudTenant)
unsupported_reason_add(:cloud_tenant_mapping, _("Tenant mapping is supported only when CloudTenant exists "\
"on the CloudManager"))
end
Expand Down

0 comments on commit e0d9f6e

Please sign in to comment.