Class: IiifPrint::IngestFileRelation
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- IiifPrint::IngestFileRelation
- Defined in:
- app/models/iiif_print/ingest_file_relation.rb
Class Method Summary collapse
-
.derivatives_for_file(path) ⇒ Array<String>
Query by file path for all derivatives, as de-duplicated array of derivative paths.
Class Method Details
.derivatives_for_file(path) ⇒ Array<String>
Query by file path for all derivatives, as de-duplicated array of
derivative paths.
10 11 12 |
# File 'app/models/iiif_print/ingest_file_relation.rb', line 10 def self.derivatives_for_file(path) where(file_path: path).pluck(:derivative_path).uniq end |