ontology_version.rb revision 36775360692520baa2625045372081b2cbc9959d
# before_validation :set_checksum
# validate :raw_file_size_maximum
# validates_presence_of :basepath
# updated_at of the latest version
end
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: Settings.hostname, only_path: false))
end
end
"#{basepath}#{file_extension}"
end
end
end
end
save! if checksum_changed?
end
end