module SimpleActiveStorage::Attached::One

Public Instance Methods

attach(attachable) click to toggle source
Calls superclass method
# File lib/simple_active_storage/attached.rb, line 25
def attach(attachable)
  record.try(:before_active_storage_attach,attachable)
  result = super attachable
  record.try(:after_active_storage_attach,{name: name, attachment: attachment})
  result
end