ontology_version.rb revision dda6f544eb58d850394073e34ae6127498869a77
# validate :raw_file_size_maximum
# updated_at of the latest version
end
source_url? ? source_url : 'File upload'
end
end
# public URL to this version
Rails.application.routes.url_helpers.ontology_ontology_version_path(ontology, self, params.reverse_merge(host: Settings.hostname, only_path: false))
end
errors.add :source_url, 'Specify either a source file or URI.'
end
end
errors.add :raw_file, 'The maximum file size is 10M.'
end
end
end
end