ontology_version.rb revision 7aad606a237a0b6145ad1d020429fcbe20dd448b
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles# before_validation :set_checksum
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles# validate :raw_file_size_maximum
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles# validates_presence_of :basepath
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada # updated_at of the latest version
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada # Public URL to this version
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada # TODO: This returns a path without the commit id and filename for now,
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada # because the FilesController or the routes were not supporting it.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada #Rails.application.routes.url_helpers.repository_ref_path(repository, commit_oid, ontology.path, params.reverse_merge(host: Settings.hostname, only_path: false))
11cb6ef00e4913c161e88403c11c037fb2afab44Andy Giles "#{basepath}#{file_extension}"
76a4caf6c7b8f1c35d80a77bd8005aeae6197786Ada "/ref/#{number}#{ontology.locid}"