docbrown/app/views/api/v0/shared/_user.json.jbuilder
Mac Siri 9ebd742712
[deploy] Reintroduce sticky_nav changes (ab81f36 & 7f92855) (#10263)
* Revert "[deploy] Revert removal of unneeded eager load (if needed) (#10179)"

This reverts commit 11c7b148da.

* Revert "[deploy] Revert "Migrate ProfileImage to Images::Profile (#10055)" (#10149)"

This reverts commit 5657067e55.
2020-09-09 15:33:13 -04:00

7 lines
309 B
Ruby

json.user do
json.extract!(user, :name, :username, :twitter_username, :github_username)
json.website_url user.processed_website_url
json.profile_image Images::Profile.call(user.profile_image_url, length: 640)
json.profile_image_90 Images::Profile.call(user.profile_image_url, length: 90)
end