Sha256: 0fe7e10eecf49d83218a926fe22bfa34d31a73058420f4f350532e0a3d95955e
Contents?: true
Size: 331 Bytes
Versions: 79
Compression:
Stored size: 331 Bytes
Contents
# frozen_string_literal: true module ActiveStorage class Attached::Changes::DeleteOne # :nodoc: attr_reader :name, :record def initialize(name, record) @name, @record = name, record end def attachment nil end def save record.public_send("#{name}_attachment=", nil) end end end
Version data entries
79 entries across 76 versions & 8 rubygems