diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-13 15:38:12 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-02-13 15:38:45 +0100 |
commit | 2d8a4c4390acba310972d7dac21b93c4e2ac9f4e (patch) | |
tree | f6bdaf2893e5078dbd35527fd5aefbbf8e6ed9e5 /app/helpers | |
parent | 63b3cb37db530d6b160618598a6e9a9e6b0eb9ab (diff) |
Add "next" link to Atom feeds
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/atom_builder_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/atom_builder_helper.rb b/app/helpers/atom_builder_helper.rb index 484cf0793..d73f09aaf 100644 --- a/app/helpers/atom_builder_helper.rb +++ b/app/helpers/atom_builder_helper.rb @@ -90,6 +90,10 @@ module AtomBuilderHelper xml.link(rel: 'self', type: 'application/atom+xml', href: url) end + def link_next(xml, url) + xml.link(rel: 'next', type: 'application/atom+xml', href: url) + end + def link_hub(xml, url) xml.link(rel: 'hub', href: url) end |