Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bryan-liff/c9021e85fb0d48527164f24a8d3bb972 to your computer and use it in GitHub Desktop.
Save bryan-liff/c9021e85fb0d48527164f24a8d3bb972 to your computer and use it in GitHub Desktop.
BDD-42 Code implementation: User object sends UserReportMailer
class User < ApplicationRecord
#...
def send_mailer_user_report
UserReportMailer.new(self).send()
end
#...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment