docbrown/app/views/api/v0/shared/_organization.json.jbuilder
2020-02-07 08:56:16 -05:00

9 lines
349 B
Ruby

organization_profile_image = ProfileImage.new(organization)
json.organization do
json.name organization.name
json.username organization.username
json.slug organization.slug
json.profile_image organization_profile_image.get(width: 640)
json.profile_image_90 organization_profile_image.get(width: 90)
end