-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extend relationships to define the appropriate class names
use parent definition of ensure since they are now pretty generic. They may be no longer necessary and a build_ may suffice. Use parent definition of propagation so all attributes go across Extend parent managers to group the functionality together
- Loading branch information
Showing
4 changed files
with
40 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
app/models/manageiq/providers/openstack/network_manager_mixin.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module ManageIQ::Providers::Openstack::NetworkManagerMixin | ||
extend ActiveSupport::Concern | ||
include ::HasNetworkManagerMixin | ||
|
||
included do | ||
has_one :network_manager, | ||
:foreign_key => :parent_ems_id, | ||
:class_name => "ManageIQ::Providers::Openstack::NetworkManager", | ||
:autosave => true | ||
end | ||
end |
11 changes: 11 additions & 0 deletions
11
app/models/manageiq/providers/openstack/swift_manager_mixin.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module ManageIQ::Providers::Openstack::SwiftManagerMixin | ||
extend ActiveSupport::Concern | ||
include ::SwiftManagerMixin | ||
|
||
included do | ||
has_one :swift_manager, | ||
:foreign_key => :parent_ems_id, | ||
:class_name => "ManageIQ::Providers::StorageManager::SwiftManager", | ||
:autosave => true | ||
end | ||
end |