class Shrine::Derivation::Opened
Public Instance Methods
call()
click to toggle source
Returns opened Shrine::UploadedFile
object pointing to the uploaded if it exists on the storage.
# File lib/shrine/plugins/derivation_endpoint.rb, line 684 def call uploaded_file = shrine_class.uploaded_file(storage: upload_storage, id: upload_location) uploaded_file.open(**upload_open_options) uploaded_file rescue Shrine::FileNotFound end