* add tests * add route * add users action to organizations controller * add jbuilder file * update api docs * add recource routes * make updates to organizations controller * remove org_users from api docs * update spec * add users show jbuilder * bug fix for user show
16 lines
292 B
Ruby
16 lines
292 B
Ruby
json.type_of "user"
|
|
|
|
json.extract!(
|
|
user,
|
|
:id,
|
|
:username,
|
|
:name,
|
|
:summary,
|
|
:twitter_username,
|
|
:github_username,
|
|
:website_url,
|
|
:location,
|
|
)
|
|
|
|
json.joined_at user.created_at.strftime("%b %e, %Y")
|
|
json.profile_image Images::Profile.call(user.profile_image_url, length: 320)
|