ontology_version.rb revision a5015ca9daa067f062e9e373c3dfafd5631560d9
# validate :raw_file_size_maximum
delegate :repository, to: :ontology
# 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