Open ghost opened 5 years ago
In DogBiscuits::Importers::Authority:
DogBiscuits::Importers::Authority
def create_record(label, uri = nil) uri = construct_uri(label) if uri.blank? # TODO: check valid URI Qa::LocalAuthorityEntry.create(local_authority: @authority, label: cleanup_label(label), uri: uri) rescue ActiveRecord::RecordNotUnique Rails.logger.warn("Duplicate record: #{label}") end
In
DogBiscuits::Importers::Authority
: