2013-07-17 13:35:36 +01:00
|
|
|
json.maintainers @maintainers do |maintainer|
|
|
|
|
json.project do
|
|
|
|
json.partial! 'api/v1/projects/project', :project => maintainer.project
|
2012-11-26 11:32:23 +00:00
|
|
|
end
|
|
|
|
|
2013-07-17 13:35:36 +01:00
|
|
|
json.package do
|
|
|
|
json.partial! 'package', :package => maintainer
|
2012-11-26 11:32:23 +00:00
|
|
|
end
|
|
|
|
|
2013-07-17 13:35:36 +01:00
|
|
|
json.maintainer do
|
2012-11-26 11:32:23 +00:00
|
|
|
if user = maintainer.try(:assignee)
|
2013-07-17 13:35:36 +01:00
|
|
|
json.partial! 'maintainer', :maintainer => user
|
2012-11-26 11:32:23 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|