docbrown/app/views/api/v0/shared/_organization.json.jbuilder
Michael Kohl 02d23a0673
Refactor jbuilder (#7411)
* Refactor jbuilder for articles

* Refactor remaining jbuilder files

* Fix specs

* Remove content_truncated from response template JSON

Co-authored-by: Ben Halpern <bendhalpern@gmail.com>
2020-04-24 12:49:12 +02:00

8 lines
275 B
Ruby

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