ontology_version.rb revision 4c1d51e9760c808027ec7f559e80067744c78541
numbering_parent_column 'ontology_id'
# Provers that can be used for proving goals in this ontology.
# before_validation :set_checksum
# validate :raw_file_size_maximum
# validates_presence_of :basepath
# updated_at of the latest version
end
end
"#{ontology.name} (version #{number})"
end
# Public URL to this version
#
# TODO: This returns a path without the commit id and filename for now,
# because the FilesController or the routes were not supporting it.
#Rails.application.routes.url_helpers.repository_ref_path(repository, commit_oid, ontology.path, params.reverse_merge(host: Ontohub::Application.config.fqdn, port: Ontohub::Application.config.port, only_path: false))
end
end
"#{basepath}#{file_extension}"
end
end
"/ref/#{number}#{ontology.locid}"
end
end
end
save! if checksum_changed?
end
end