More accessible rss feed to the versions page. Refs #15

This commit is contained in:
echarp 2016-01-10 01:44:47 +01:00
parent 0c0d07381b
commit 3a5df0b521
2 changed files with 2 additions and 2 deletions

View File

@ -48,6 +48,6 @@
= paginate @versions
.formats
= link_to versions_path do
= link_to versions_path(format: :rss) do
%em.fa.fa-rss
= t '.feed'

View File

@ -38,7 +38,7 @@ xml.rdf :RDF,
@versions.each do |version|
if version.event == 'create'
object = version.item_type.constantize.find_by_id version.item_id
next unless object.moderated?
next unless object.try(:moderated?)
end
object = version.reify if object.nil?
url = polymorphic_url(version.item_type.tableize.singularize,