ActiveStorage::VariantWithRecord (original) (raw)
Methods
D
F
I
N
P
Attributes
Class Public methods
new(blob, variation)Link
def initialize(blob, variation) @blob, @variation = blob, ActiveStorage::Variation.wrap(variation) end
Instance Public methods
destroy()Link
Destroys record and deletes file from service.
filename()Link
def filename ActiveStorage::Filename.new "#{blob.filename.base}.#{variation.format.downcase}" end
processed()Link
def processed process unless processed? self end