app/models/resource.rb
# "Ports" all of the traits for the resource from the old PHP format to the
# new Rails format.
"Ports" all of the traits for the resource from the old PHP format to the
new Rails format.
" Ports " all of the traits for the resource from the old PHP format to the new Rails format .
def port_traits
    EOL.log_call
    TraitBank.delete_resource(self)
    taxa = TraitBank::ResourcePorter.port(self)
    TraitBank.flatten_taxa(taxa)
    remove_missing_data_point_uris
  end
def port_traits EOL . log_call TraitBank . delete_resource ( self ) taxa = TraitBank :: ResourcePorter . port ( self ) TraitBank . flatten_taxa ( taxa ) remove_missing_data_point_uris end
"Ports" all of the traits for the resource from the old PHP format to the
new Rails format.
" Ports " all of the traits for the resource from the old PHP format to the new Rails format .
# NOTE: this is depressingly expensive, when it's really not likely to add # much value. But we do need to try and add all of the flattened taxa for # this resource, so that search will find the children. (Usually, they are # all there, but we need to be sure!) TODO: we could look up all of the taxa # to get a delta and just add those.