Skip to content

Commit

Permalink
virtual column for default_security_group to be accessible in API
Browse files Browse the repository at this point in the history
  • Loading branch information
AparnaKarve committed Sep 11, 2018
1 parent c115691 commit 0018e67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/cloud_tenant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class CloudTenant < ApplicationRecord

virtual_total :total_vms, :vms

virtual_column :default_security_group, :uses => :security_groups

def self.class_by_ems(ext_management_system)
ext_management_system && ext_management_system.class::CloudTenant
end
Expand Down

0 comments on commit 0018e67

Please sign in to comment.