lib/amee/profile.rb in Floppy-amee-0.4.25 vs lib/amee/profile.rb in Floppy-amee-0.4.26

- old
+ new

@@ -84,11 +84,14 @@ rescue raise AMEE::BadData.new("Couldn't create Profile.") end def self.delete(connection, uid) - # Delete profile + # Deleting profiles takes a while... up the timeout to 60 seconds temporarily + t = connection.timeout + connection.timeout = 60 connection.delete("/profiles/#{uid}") + connection.timeout = t end end end end