Sha256: 1d97bf40d6bce53ce38cf525ce18c6193037f43f600ae84845296aee00be853f
Contents?: true
Size: 420 Bytes
Versions: 5
Compression:
Stored size: 420 Bytes
Contents
module ActiveStorageSupport class Base64Many < ActiveStorage::Attached::Many def attach(*attachables) super self.class.from_base64(attachables) end def self.from_base64(attachables) attachables = [attachables] unless attachables.is_a?(Array) attachables.flatten.map do |attachable| ActiveStorageSupport::Base64Attach.attachment_from_data(attachable) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems