Add user email to the user.jbuilder

This commit is contained in:
Eric 2020-05-20 13:31:50 -05:00
parent 91a173052a
commit f747571a75

View file

@ -1,7 +1,7 @@
# frozen_string_literal: true
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
json.extract! user, :id, :created_at, :updated_at
json.extract! user, :id, :created_at, :updated_at, :email
json.unconfirmed_email user.unconfirmed_email
json.confirmed user.confirmed?