Add default_branch for Platform API response

This commit is contained in:
Vokhmin Alexey V 2015-02-19 23:13:47 +03:00
parent 8a4351850c
commit 61dc5ca967
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
json.platform do
json.partial! 'platform', platform: @platform
json.(@platform, :description, :parent_platform_id, :released, :distrib_type)
json.(@platform, :description, :parent_platform_id, :released, :distrib_type, :default_branch)
json.created_at @platform.created_at.to_i
json.updated_at @platform.updated_at.to_i
json.partial! 'api/v1/shared/owner', owner: @platform.owner