Changeset 1560

Show
Ignore:
Timestamp:
04/25/08 15:04:54 (2 weeks ago)
Author:
kindlund
Message:

Housekeeping.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • hive/trunk/data_webapp/app/models/host.rb

    r1111 r1560  
    66  def self.new_from_hash(obj_hash) 
    77    if obj_hash.member?("clients") 
    8        clients = obj_hash.delete("clients") 
     8      clients = obj_hash.delete("clients") 
    99    end 
    1010    host = new_or_existing(Host,obj_hash) 
    11    if not clients.nil? 
    12      clients.map {|x| host.clients << Client.new_from_hash(x)} 
    13    end 
    14    host 
     11    if not clients.nil? 
     12      clients.map {|x| host.clients << Client.new_from_hash(x)} 
     13    end 
     14    host 
    1515  end 
    1616end