|
|
@ -13,9 +13,14 @@ class Tiding < ApplicationRecord
|
|
|
|
value = container.try(:identifier)
|
|
|
|
value = container.try(:identifier)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if value.blank? && parent_container_type && Object.const_defined?(parent_container_type)
|
|
|
|
|
|
|
|
value = parent_container_type.try(:identifier)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if value.blank? && belong_container_type && Object.const_defined?(belong_container_type)
|
|
|
|
if value.blank? && belong_container_type && Object.const_defined?(belong_container_type)
|
|
|
|
value = belong_container.try(:identifier)
|
|
|
|
value = belong_container.try(:identifier)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
value
|
|
|
|
value
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|