diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-25 16:53:30 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-25 16:53:30 +0100 |
commit | 3beb24ad5544723348d1e23a99c2b5ab1e26ae1f (patch) | |
tree | da6109c6c30a8ed0349284eef93659a7b6c12e6c /app/helpers | |
parent | 0430f7c0fa73e03fad83af123b22f56cfe60c7fb (diff) |
Use <summary> to encode content warnings instead
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/atom_builder_helper.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/helpers/atom_builder_helper.rb b/app/helpers/atom_builder_helper.rb index f17b4cc72..c08d80ea0 100644 --- a/app/helpers/atom_builder_helper.rb +++ b/app/helpers/atom_builder_helper.rb @@ -42,9 +42,8 @@ module AtomBuilderHelper end def content(xml, content, warning = nil) - extra = { type: 'html' } - extra[:warning] = warning unless warning.blank? - xml.content(extra, content) unless content.blank? + xml.summary(warning) unless warning.blank? + xml.content({ type: 'html' }, content) unless content.blank? end def title(xml, title) |