module Shrine::Plugins::Versions::InstanceMethods

  1. lib/shrine/plugins/versions.rb

Methods

Public Instance

  1. upload

Public Instance methods

upload(io, **options)
[show source]
   # File lib/shrine/plugins/versions.rb
44 def upload(io, **options)
45   files = process(io, **options) || io
46 
47   Utils.map_file(files) do |name, version|
48     options.merge!(version: name.one? ? name.first : name) if name
49 
50     super(version, **options, process: false)
51   end
52 end