2013-07-17 13:35:36 +01:00
|
|
|
json.platforms @platforms do |platform|
|
2014-01-21 04:51:49 +00:00
|
|
|
json.partial! 'platform', platform: platform
|
|
|
|
json.partial! 'api/v1/shared/owner', owner: platform.owner
|
2013-07-17 13:35:36 +01:00
|
|
|
json.repositories platform.repositories do |repo|
|
|
|
|
json.(repo, :id, :name)
|
2014-01-21 04:51:49 +00:00
|
|
|
json.url api_v1_repository_path(repo.id, format: :json)
|
2012-09-20 16:07:06 +01:00
|
|
|
end
|
2012-08-17 14:40:57 +01:00
|
|
|
end
|
|
|
|
|
2014-01-21 04:51:49 +00:00
|
|
|
json.url api_v1_platforms_path(format: :json)
|