Delete services one-by-one instead of calling 'delete_all', which doesn't exist. (fixes #748)

git-svn-id: file:///home/svn/framework3/trunk@8064 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Mike Smith 2010-01-04 16:14:23 +00:00
parent c62e314ac4
commit 471b1e6ff8
1 changed files with 1 additions and 1 deletions

View File

@ -615,7 +615,7 @@ class DBManager
host = get_host(address)
return unless host
host.services.find(:all, :conditions => { :proto => proto, :port => port}).destroy_all
host.services.all(:conditions => {:proto => proto, :port => port}).each { |s| s.destroy }
end
#