Class: CurationConcerns::DerivativePath
- Inherits:
-
Object
- Object
- CurationConcerns::DerivativePath
- Defined in:
- app/services/curation_concerns/derivative_path.rb
Class Method Summary collapse
-
.derivative_path_for_reference(object, destination_name) ⇒ Object
Path on file system where derivative file is stored.
Class Method Details
.derivative_path_for_reference(object, destination_name) ⇒ Object
Path on file system where derivative file is stored
5 6 7 8 |
# File 'app/services/curation_concerns/derivative_path.rb', line 5 def derivative_path_for_reference(object, destination_name) destination_name = destination_name.gsub(/^original_file_/, '') derivative_path(object, extension_for(destination_name), destination_name) end |