mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
Treat deleted universes as gone universes
This commit is contained in:
parent
b3031974c6
commit
827b4ea53e
@ -58,7 +58,8 @@ class ExportController < ApplicationController
|
||||
if value.is_a?(ActiveRecord::Associations::CollectionProxy)
|
||||
value = value.map(&:name).to_sentence
|
||||
elsif attr.end_with?('_id') && value.present?
|
||||
value = Universe.find(value.to_i).name
|
||||
universe = Universe.where(id: value.to_i).first
|
||||
value = universe.name if universe
|
||||
end
|
||||
|
||||
value
|
||||
|
||||
Loading…
Reference in New Issue
Block a user