Module: Shrine::Plugins::KitheStorageLocation::InstanceMethods

Defined in:
lib/shrine/plugins/kithe_storage_location.rb

Instance Method Summary collapse

Instance Method Details

#generate_location(io, derivative: nil, **context) ⇒ Object



35
36
37
38
39
40
41
42
43
# File 'lib/shrine/plugins/kithe_storage_location.rb', line 35

def generate_location(io, derivative: nil, **context)
  original = super

  if derivative
    _kithe_generate_derivative_location(io, original: original, derivative: derivative, **context)
  else
    _kithe_generate_main_location(io, original: original, **context)
  end
end