add: update user_info

This commit is contained in:
2021-05-31 18:39:49 +08:00
committed by viletyy
parent dc4c99c305
commit 86f0f2051d
7 changed files with 180 additions and 35 deletions

View File

@@ -181,7 +181,7 @@ class User < Owner
attr_accessor :password, :password_confirmation
delegate :gender, :department_id, :school_id, :location, :location_city, :technical_title, to: :user_extension, allow_nil: true
delegate :description, :gender, :department_id, :school_id, :location, :location_city, :technical_title, :province, :city, :custom_department, to: :user_extension, allow_nil: true
before_save :update_hashed_password
after_create do