|
|
@ -14,6 +14,7 @@ class Users::UpdateAccountForm
|
|
|
|
validates :technical_title, presence: true, unless: -> { identity.to_s == 'student' }
|
|
|
|
validates :technical_title, presence: true, unless: -> { identity.to_s == 'student' }
|
|
|
|
validates :student_id, presence: true, if: -> { identity.to_s == 'student' }
|
|
|
|
validates :student_id, presence: true, if: -> { identity.to_s == 'student' }
|
|
|
|
validates :school_id, presence: true
|
|
|
|
validates :school_id, presence: true
|
|
|
|
|
|
|
|
validates :department_id, presence: true
|
|
|
|
|
|
|
|
|
|
|
|
validate :check_school_exist
|
|
|
|
validate :check_school_exist
|
|
|
|
def check_school_exist
|
|
|
|
def check_school_exist
|
|
|
|