2012-06-04 20:49:20 +01:00
|
|
|
json.array!(advisories) do |json, a|
|
|
|
|
json.id a.advisory_id
|
|
|
|
json.advisory_id a.advisory_id
|
|
|
|
json.description simple_format(a.description)
|
2014-01-21 04:51:49 +00:00
|
|
|
json.popover_desc truncate(a.description, length: 500);
|
2012-06-04 20:49:20 +01:00
|
|
|
json.references a.references.split("\n").map{|ref| construct_ref_link(ref)}.join('<br />')
|
|
|
|
json.update_type a.update_type
|
|
|
|
end
|