docbrown/app/views/api/v0/shared/_organization.json.jbuilder
cyrillefr 70631ad2f7 Listings creation and update API (#4014)
* Listings creation and update API

  - new listings controller
  - refactored code to share core functionnality between api and web controllers
  - code in common in classified listing concerns
  - added tests for index/create/update
  - json output as views
  - updated a factory

* Listings creation and update API: code update

  - refactored json calls
  - added test cases
  - added pagination for list of listings
  - refactored jbuilder files
  - typos

* Listings creation and update API: code update

  - tags and tag_list in controller
  - changed view to display both
  - refactored and added test

* Listings creation and update API: code update

  - small change to resolve conflit

* Listings creation and update API: code update

  - added test case
  - deleted unneeded test case
2019-09-24 07:03:52 -07:00

9 lines
335 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(640)
json.profile_image_90 organization_profile_image.get(90)
end