module Shrine::Plugins::RackFile::AttacherMethods

  1. lib/shrine/plugins/rack_file.rb

Methods

Public Instance

  1. assign

Public Instance methods

assign (value)

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, line 89
def assign(value)
  if rack_file?(value)
    assign(shrine_class.rack_file(value))
  else
    super
  end
end