Skip to content

Commit

Permalink
サインアップ時のメールの文言を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
SatoshiHaramura committed Aug 4, 2022
1 parent bead829 commit fc78110
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/mailers/notification_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,12 @@ def hibernated
subject = "[FBC] #{@sender.login_name}さんが休会しました。"
mail to: @user.email, subject: subject
end

# required params: sender, receiver
def signed_up
@user = @receiver
@notification = @user.notifications.find_by(link: "/users/#{@sender.id}", kind: Notification.kinds[:signed_up])
subject = "[FBC] #{@sender.login_name}さんが新しく入会しました!"
mail to: @user.email, subject: subject
end
end
1 change: 1 addition & 0 deletions app/views/notification_mailer/signed_up.html.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
= render 'notification_mailer_template', title: "#{@sender.login_name}さんが新しく入会しました!", link_url: notification_url(@notification), link_text: "#{@sender.login_name}さんのページへ"

0 comments on commit fc78110

Please sign in to comment.