Sha256: 369aef104977d387a38c76660fa424d199082fe012e45274296e8514b50073cf
Contents?: true
Size: 513 Bytes
Versions: 81
Compression:
Stored size: 513 Bytes
Contents
# frozen_string_literal: true module Spotlight # Used by RIIIF to find files uploaded by carrierwave class CarrierwaveFileResolver < Riiif::AbstractFileSystemResolver # Override initialzer to avoid deprecation about not providing base path def initialize # nop end def pattern(id) uploaded_file = Spotlight::FeaturedImage.find(id).image.file raise Riiif::ImageNotFoundError, "unable to find file for #{id}" if uploaded_file.nil? uploaded_file.file end end end
Version data entries
81 entries across 81 versions & 1 rubygems