FEATURE: Allow date_of_field column to be updated.

This commit is contained in:
Guo Xiang Tan
2016-11-15 16:10:20 +08:00
parent 8c6d8c85db
commit f824afb4d3
4 changed files with 8 additions and 3 deletions

View File

@@ -54,6 +54,7 @@ class UserUpdater
user.name = attributes.fetch(:name) { user.name }
user.locale = attributes.fetch(:locale) { user.locale }
user.date_of_birth = attributes.fetch(:date_of_birth) { user.date_of_birth }
if guardian.can_grant_title?(user)
user.title = attributes.fetch(:title) { user.title }