X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d227589a6336999c38bffc5e11655100b9a4630a..6fafe7f309800b9ae8144eb723a89b81fee1d757:/app/models/user.rb diff --git a/app/models/user.rb b/app/models/user.rb index ae5b0b74f..9d7d233b7 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -33,7 +33,7 @@ class User < ActiveRecord::Base 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