about summary refs log tree commit diff
path: root/app/views/stream_entries/show.atom.ruby
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-02-29 19:42:08 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-02-29 19:42:08 +0100
commit0e8f59c16fcb21301c736ecbc4424cb4c5388c42 (patch)
tree344ac1e0b2d165ba4fe3870f786e854710970ce1 /app/views/stream_entries/show.atom.ruby
parent11ff92c9d7b27c2c9ed86f649aef8d956cc8b989 (diff)
Refactoring Grape API methods into normal controllers & other things
Diffstat (limited to 'app/views/stream_entries/show.atom.ruby')
-rw-r--r--app/views/stream_entries/show.atom.ruby9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/stream_entries/show.atom.ruby b/app/views/stream_entries/show.atom.ruby
new file mode 100644
index 000000000..e0e089f46
--- /dev/null
+++ b/app/views/stream_entries/show.atom.ruby
@@ -0,0 +1,9 @@
+Nokogiri::XML::Builder.new do |xml|
+  entry(xml, true) do
+    author(xml) do
+      include_author xml, @entry.account
+    end
+
+    include_entry xml, @entry
+  end
+end.to_xml