Signed-off-by: Corey Osman <corey@logicminds.biz>
···
--- app/models/hostgroup.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)diff --git a/app/models/hostgroup.rb b/app/models/hostgroup.rb
index 4258ddc…14263c6 100644
— a/app/models/hostgroup.rb
+++ b/app/models/hostgroup.rb
@@ -69,7 +69,7 @@ class Hostgroup < ActiveRecord::Base
end
def as_json(options={})
- super({:only => [:name, :subnet_id, :operatingsystem_id, :domain_id, :id], :methods => [:label, :classes, :parameters].concat(Vm::PROPERTIES), :include => [:environment]})
- super({:only => [:name, :subnet_id, :operatingsystem_id, :domain_id, :id, :ancestry], :methods => [:label, :classes, :parameters].concat(Vm::PROPERTIES), :include => [:environment]})
end
def hostgroup
1.7.1