2013-07-11 14:03:02 +01:00
|
|
|
json.refs_list @refs do |json_grit, grit|
|
2012-10-11 17:27:17 +01:00
|
|
|
json_grit.ref grit.name
|
|
|
|
json_grit.object do |json_object|
|
|
|
|
json_object.type (grit.class.name =~ /Tag/ ? 'tag' : 'commit')
|
|
|
|
json_object.sha grit.commit.id
|
2013-07-15 11:11:17 +01:00
|
|
|
json_object.authored_date grit.commit.authored_date.to_i
|
2012-10-11 17:27:17 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
json.url refs_list_api_v1_project_path(@project.id, :format => :json)
|