class ActiveStorage::Attached::Many
def attachments
Returns all the associated attachment records.
def attachments change.present? ? change.attachments : record.public_send("#{name}_attachments") end
def attachments change.present? ? change.attachments : record.public_send("#{name}_attachments") end