diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-02-25 00:22:46 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-02-25 00:22:46 +0100 |
commit | 44c5958203dd8d0f96f880a8014a3233719077a6 (patch) | |
tree | bfea06ab48438e6431a45d130825179d9fa1f6e9 /app/helpers | |
parent | 71fe24096c612996cb2a827c919a4c88ae1e3495 (diff) |
Fixed small bugs and code style offences
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/atom_helper.rb | 8 |
1 files changed, 4 insertions, 4 deletions
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 |