ontology_version.rb revision 5cad3e82e8c017bc189c4cecc00541ec19a2a6e2
# 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