]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user.rb
Remove comment saying when these files were generated
[rails.git] / app / models / user.rb
index 1e594479728bde84bdad8ae237b368c9820762a2..9d7d233b7276f612eb420f56e4991e741e6c3aee 100644 (file)
@@ -33,7 +33,7 @@ class User < ActiveRecord::Base
   file_column :image, :magick => { :geometry => "100x100>" }
 
   def after_initialize
   file_column :image, :magick => { :geometry => "100x100>" }
 
   def after_initialize
-    self.creation_time = Time.now.getutc if self.creation_time.nil?
+    self.creation_time = Time.now.getutc unless self.attribute_present?(:creation_time)
   end
 
   def encrypt_password
   end
 
   def encrypt_password
@@ -125,10 +125,6 @@ class User < ActiveRecord::Base
     return false
   end
 
     return false
   end
 
-  def trace_public_default
-    return self.preferences.find(:first, :conditions => {:k => "gps.trace.public", :v => "default"})
-  end
-
   def delete
     self.active = false
     self.display_name = "user_#{self.id}"
   def delete
     self.active = false
     self.display_name = "user_#{self.id}"