Skip to content

Commit

Permalink
Merge pull request ManageIQ#17161 from agrare/remove_unnecessary_clas…
Browse files Browse the repository at this point in the history
…s_name_for_vms_and_templates

Remove :class_name for ems.vms_and_templates
  • Loading branch information
Fryguy authored Mar 15, 2018
2 parents 4c43f6e + cccfa9e commit 9cb13f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/ext_management_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def self.api_allowed_attributes
has_many :non_clustered_hosts, -> { non_clustered }, :class_name => "Host", :foreign_key => "ems_id"
has_many :clustered_hosts, -> { clustered }, :class_name => "Host", :foreign_key => "ems_id"
has_many :vms_and_templates, :foreign_key => "ems_id", :dependent => :nullify,
:class_name => "VmOrTemplate", :inverse_of => :ext_management_system
:inverse_of => :ext_management_system
has_many :miq_templates, :foreign_key => :ems_id, :inverse_of => :ext_management_system
has_many :vms, :foreign_key => :ems_id, :inverse_of => :ext_management_system
has_many :operating_systems, :through => :vms_and_templates
Expand Down

0 comments on commit 9cb13f1

Please sign in to comment.