app/models/doc_mailer_maker.rb
# Triggers mail delivery unless there are no +read_docs+ or +write_docs+ to mail
# to the user.  Returns +false+ if there are no docs, else triggers mail delivery.
Triggers mail delivery unless there are no +read_docs+ or +write_docs+ to mail
to the user.  Returns +false+ if there are no docs, else triggers mail delivery.
Triggers mail delivery unless there are no + read_docs + or + write_docs + to mail to the user . Returns + false + if there are no docs else triggers mail delivery .
def deliver
    if write_docs.blank? && read_docs.blank?
      Rails.logger.debug "No docs to send"
      return false
    end
    mail.deliver_later
  end
def deliver if write_docs . blank? && read_docs . blank? Rails . logger . debug "No docs to send" return false end mail . deliver_later end
Triggers mail delivery unless there are no +read_docs+ or +write_docs+ to mail
to the user.
Triggers mail delivery unless there are no + read_docs + or + write_docs + to mail to the user .