* 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>
8 lines
275 B
Ruby
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
|