* Revert "[deploy] Revert removal of unneeded eager load (if needed) (#10179)" This reverts commit11c7b148da. * Revert "[deploy] Revert "Migrate ProfileImage to Images::Profile (#10055)" (#10149)" This reverts commit5657067e55.
12 lines
419 B
Ruby
12 lines
419 B
Ruby
module Webhook
|
|
class UserSerializer < ApplicationSerializer
|
|
attributes :name, :username, :twitter_username, :github_username
|
|
attribute :website_url, &:processed_website_url
|
|
attribute :profile_image do |user|
|
|
Images::Profile.call(user.profile_image_url, length: 640)
|
|
end
|
|
attribute :profile_image_90 do |user|
|
|
Images::Profile.call(user.profile_image_url, length: 90)
|
|
end
|
|
end
|
|
end
|