class ActionMailer::Base::LateAttachmentsProxy

def []=(_name, _content); _raise_error end

def []=(_name, _content); _raise_error end

def _raise_error

def _raise_error
  raise RuntimeError, "Can't add attachments after `mail` was called.\n" \
                      "Make sure to use `attachments[]=` before calling `mail`."
end

def inline; _raise_error end

def inline; _raise_error end