From e50933bbcd5b33e6d2a5dd9302a55813d4c37c69 Mon Sep 17 00:00:00 2001 From: David Eisinger Date: Mon, 18 Sep 2017 11:11:43 -0400 Subject: [PATCH] Wrap narrative in tag --- app/views/api/v1/projects/_activity.xml.builder | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/api/v1/projects/_activity.xml.builder b/app/views/api/v1/projects/_activity.xml.builder index 6aaba04e..d69f2a0f 100644 --- a/app/views/api/v1/projects/_activity.xml.builder +++ b/app/views/api/v1/projects/_activity.xml.builder @@ -123,11 +123,12 @@ x.tag!('iati-activity', { p.humanitarian_scopes.each do |scope| x.tag!( 'humanitarian-scope', - scope.narrative, type: scope.humanitarian_scope_type.code, vocabulary: scope.humanitarian_scope_vocabulary.code, code: scope.code, "vocabulary-uri": scope.vocabulary_uri.presence || scope.humanitarian_scope_vocabulary.url - ) + ) do + x.narrative scope.narrative + end end end