class ActiveStorage::Variation
def transform(file, &block)
Accepts a File object, performs the +transformations+ against it, and
def transform(file, &block) ActiveSupport::Notifications.instrument("transform.active_storage") do transformer.transform(file, format: format, &block) end end