From b70352fee0897dacd6810bc2094018299c7df63a Mon Sep 17 00:00:00 2001 From: Lukas Zapletal Date: Tue, 27 Sep 2011 15:56:18 +0200 Subject: [PATCH] rhsm fetch environment with owner information --- src/app/models/system.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/models/system.rb b/src/app/models/system.rb index dc7d5099072..fb8d9eb0e09 100644 --- a/src/app/models/system.rb +++ b/src/app/models/system.rb @@ -68,6 +68,11 @@ def self.list_tags select('id,name').all.collect { |m| VirtualTag.new(m.id, m.name) } end + def as_json(options) + json = super(options) + json['environment'] = environment.as_json unless environment.nil? + json + end def self.any_readable? org org.systems_readable? ||