You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/views/users/accounts/show.json.jbuilder

26 lines
858 B

6 years ago
json.extract! observed_user, :id, :nickname, :phone, :mail, :show_realname
json.avatar_url url_to_avatar(observed_user)
user = ActiveDecorator::Decorator.instance.decorate(observed_user)
json.name user.name
json.authentication user.authentication_status
json.professional_certification user.professional_certification_status
extension = observed_user.user_extension
json.gender extension&.gender
json.location extension&.location
json.location_city extension&.location_city
json.identity extension&.identity
json.technical_title extension&.technical_title
json.student_id extension&.student_id
json.school_id extension&.school_id
json.school_name extension&.school&.name
json.department_id extension&.department_id
json.department_name extension&.department&.name
json.base_info_completed user.profile_completed?
6 years ago
json.all_certified user.all_certified?