class ActiveStorageSupport::Base64One
Public Class Methods
from_base64(attachable)
click to toggle source
# File lib/active_storage_support/base64_one.rb, line 7 def self.from_base64(attachable) ActiveStorageSupport::Base64Attach.attachment_from_data(attachable) end
Public Instance Methods
attach(attachable)
click to toggle source
Calls superclass method
# File lib/active_storage_support/base64_one.rb, line 3 def attach(attachable) super self.class.from_base64(attachable) end