ontology_version.rb revision 46dd7ca898be6d5dbdfda64fd90ce01e253c0878
cbb18f95cb8354f0c3fb44ba5134dadc7ad6b2ecJulian Kornberger belongs_to :ontology, :counter_cache => :versions_count
ac2169141f0b549fc8917a4b1d778f4ba3cab0bfJulian Kornberger# before_validation :set_checksum
22e260fcd85642794d99c2ffaa333f2ef6ed7828Daniel Couto Vale# validate :raw_file_size_maximum
555b7fd96768daf9592e7ddbd4217d784b08e451henning mueller :with => URI::regexp(Settings.allowed_iri_schemes), :if => :source_url?
b9f99a06294e593ce8fb34b015e83003229db058Julian Kornberger scope :state, ->(state) { where :state => state }
46dd7ca898be6d5dbdfda64fd90ce01e253c0878Julian Kornberger Rails.application.routes.url_helpers.repository_ref_path(repository, commit_oid, ontology.path, params.reverse_merge(host: Settings.hostname, only_path: false))
ecf32c9d659a1f42c730d61eaa93583c095a4fddhenning mueller errors.add :raw_file, 'The maximum file size is 10M.'