Users & Auth

This commit is contained in:
2018-11-10 18:46:47 -06:00
parent 904a071fc0
commit 8a7b3d8ae0
26 changed files with 663 additions and 14 deletions

View File

@ -0,0 +1,9 @@
# frozen_string_literal: true
json.extract! user,
:id,
:display_name,
:email,
:role
json.url v1_user_url(user, format: :json)

View File

@ -0,0 +1,3 @@
# frozen_string_literal: true
json.array! @users, partial: 'v1/users/user', as: :user

View File

@ -0,0 +1,3 @@
# frozen_string_literal: true
json.partial! "v1/users/user", user: @user