Minor correction to better display versions. Refs #15
This commit is contained in:
parent
b89ca5deb8
commit
0c0d07381b
@ -15,9 +15,9 @@
|
|||||||
:ruby
|
:ruby
|
||||||
if version.event == 'create'
|
if version.event == 'create'
|
||||||
object = version.item_type.constantize.find_by_id version.item_id
|
object = version.item_type.constantize.find_by_id version.item_id
|
||||||
|
next unless object.try(:moderated?)
|
||||||
end
|
end
|
||||||
object = version.reify if object.nil?
|
object = version.reify if object.nil?
|
||||||
next unless object.try(:moderated?)
|
|
||||||
|
|
||||||
changes = ''
|
changes = ''
|
||||||
if version.event == 'update'
|
if version.event == 'update'
|
||||||
|
@ -38,9 +38,9 @@ xml.rdf :RDF,
|
|||||||
@versions.each do |version|
|
@versions.each do |version|
|
||||||
if version.event == 'create'
|
if version.event == 'create'
|
||||||
object = version.item_type.constantize.find_by_id version.item_id
|
object = version.item_type.constantize.find_by_id version.item_id
|
||||||
|
next unless object.moderated?
|
||||||
end
|
end
|
||||||
object = version.reify if object.nil?
|
object = version.reify if object.nil?
|
||||||
next unless object.moderated?
|
|
||||||
url = polymorphic_url(version.item_type.tableize.singularize,
|
url = polymorphic_url(version.item_type.tableize.singularize,
|
||||||
id: version.item_id)
|
id: version.item_id)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user