Class: ActiveStorageSupport::Base64One

Inherits:
ActiveStorage::Attached::One
  • Object
show all
Defined in:
lib/active_storage_support/base64_one.rb

Instance Method Summary collapse

Instance Method Details

#attach(attachable) ⇒ Object



3
4
5
6
# File 'lib/active_storage_support/base64_one.rb', line 3

def attach(attachable)
  attachment = ActiveStorageSupport::Base64Attach.attachment_from_data(attachable)
  super attachment
end