Last active
June 30, 2022 23:51
-
-
Save bryan-liff/c9021e85fb0d48527164f24a8d3bb972 to your computer and use it in GitHub Desktop.
BDD-42 Code implementation: User object sends UserReportMailer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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