More accessible rss feed to the versions page. Refs #15
This commit is contained in:
parent
0c0d07381b
commit
3a5df0b521
@ -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'
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user