module Shrine::Plugins::RackFile::AttacherMethods

  1. lib/shrine/plugins/rack_file.rb


Public Instance

  1. assign

Public Instance methods

assign(value, **options)

Checks whether a file is a Rack file hash, and in that case wraps the hash in an IO-like object.

[show source]
   # File lib/shrine/plugins/rack_file.rb
27 def assign(value, **options)
28   if rack_file?(value)
29     assign shrine_class.rack_file(value), **options
30   else
31     super
32   end
33 end