Skip to content

Commit

Permalink
Wrap narrative in <narrative> tag
Browse files Browse the repository at this point in the history
  • Loading branch information
dce committed Sep 18, 2017
1 parent 536419f commit e50933b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/views/api/v1/projects/_activity.xml.builder
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e50933b

Please sign in to comment.