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