Null descriptions are not allowed.
authorTom Hughes <tom@compton.nu>
Sat, 25 Apr 2009 22:26:56 +0000 (22:26 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 25 Apr 2009 22:26:56 +0000 (22:26 +0000)
app/models/user.rb

index 4113662aa411e3e5c3c60b1f809f2a0d2dc3a93d..2adbbb9a19d729acdc5053f54171a1d2d96ee6f5 100644 (file)
@@ -113,7 +113,7 @@ class User < ActiveRecord::Base
   def delete
     self.active = false
     self.display_name = "user_#{self.id}"
   def delete
     self.active = false
     self.display_name = "user_#{self.id}"
-    self.description = nil
+    self.description = ""
     self.home_lat = nil
     self.home_lon = nil
     self.image = nil
     self.home_lat = nil
     self.home_lon = nil
     self.image = nil