class ActiveStorageSupport::Base64Many
Public Class Methods
from_base64(attachables)
click to toggle source
# File lib/active_storage_support/base64_many.rb, line 7 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
Public Instance Methods
attach(*attachables)
click to toggle source
Calls superclass method
# File lib/active_storage_support/base64_many.rb, line 3 def attach(*attachables) super self.class.from_base64(attachables) end