]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user.rb
Use the alias for the conditions as well...
[rails.git] / 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}"
-    self.description = nil
+    self.description = ""
     self.home_lat = nil
     self.home_lon = nil
     self.image = nil