2013-07-17 13:35:36 +01:00
|
|
|
json.maintainers @maintainers do |maintainer|
|
|
|
|
json.project do
|
2014-01-21 04:51:49 +00:00
|
|
|
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
|
2014-01-21 04:51:49 +00:00
|
|
|
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)
|
2014-01-21 04:51:49 +00:00
|
|
|
json.partial! 'maintainer', maintainer: user
|
2012-11-26 11:32:23 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|