Project

General

Profile

« Previous | Next » 

Revision ec1b5011

Added by Ohad Levy almost 12 years ago

  • ID ec1b50118b285c64db563565d650544eed879e68

make sure usernames are not in the logs

View differences:

app/models/host.rb
counter = Host.count(:include => association.pluralize, :group => "#{association}_id")
# returns {:id => count...}
#Puppetclass.find(counter.keys.compact)...
Hash[eval("#{association.camelize}.find(#{counter.keys.compact.join(',')})").map {|i| [i.to_label, counter[i.id]]}]
Hash[eval(association.camelize).send(:find, counter.keys.compact).map {|i| [i.to_label, counter[i.id]]}]
end
def resources_chart(timerange = 1.day.ago)

Also available in: Unified diff