]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user.rb
Adjust sizes of changeset element headers/pagination
[rails.git] / app / models / user.rb
index 3d74b3933ec2c7eaabdf49585ff8ba0206b8fa0d..7571dd9dc5c8011f4615ebf970b6f0daa377adc9 100644 (file)
@@ -115,6 +115,7 @@ class User < ApplicationRecord
 
   alias_attribute :created_at, :creation_time
 
+  after_initialize :encrypt_password
   before_save :encrypt_password
   before_save :update_tile
   after_save :spam_check