Skip to content

Commit

Permalink
rhsm fetch environment with owner information
Browse files Browse the repository at this point in the history
  • Loading branch information
lzap committed Sep 27, 2011
1 parent 1cbce9b commit b70352f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/models/system.rb
Expand Up @@ -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? ||
Expand Down

0 comments on commit b70352f

Please sign in to comment.