rosa-build/app/views/api/v1/maintainers/index.json.jbuilder

16 lines
348 B
Plaintext
Raw Normal View History

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
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
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