From 44c5958203dd8d0f96f880a8014a3233719077a6 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 25 Feb 2016 00:22:46 +0100 Subject: Fixed small bugs and code style offences --- app/helpers/atom_helper.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/helpers') diff --git a/app/helpers/atom_helper.rb b/app/helpers/atom_helper.rb index f091d1afe..f8675db3b 100644 --- a/app/helpers/atom_helper.rb +++ b/app/helpers/atom_helper.rb @@ -7,7 +7,7 @@ module AtomHelper if is_root root_tag(xml, :entry, &block) else - xml.entry &block + xml.entry(&block) end end @@ -44,11 +44,11 @@ module AtomHelper end def author(xml, &block) - xml.author &block + xml.author(&block) end def target(xml, &block) - xml['activity'].object &block + xml['activity'].object(&block) end def object_type(xml, type) @@ -177,6 +177,6 @@ module AtomHelper private def root_tag(xml, tag, &block) - xml.send(tag, {xmlns: 'http://www.w3.org/2005/Atom', 'xmlns:thr': 'http://purl.org/syndication/thread/1.0', 'xmlns:activity': 'http://activitystrea.ms/spec/1.0/', 'xmlns:poco': 'http://portablecontacts.net/spec/1.0'}, &block) + xml.send(tag, { :xmlns => 'http://www.w3.org/2005/Atom', 'xmlns:thr' => 'http://purl.org/syndication/thread/1.0', 'xmlns:activity' => 'http://activitystrea.ms/spec/1.0/', 'xmlns:poco' => 'http://portablecontacts.net/spec/1.0' }, &block) end end -- cgit