forked from External/greenlight
GRN2-6: Notify admins when a approve/invite user signs up (#538)
* Notify admins when a approve/invite user signs up * Fix formating * Uses admins_url variable
This commit is contained in:
committed by
Jesus Federico
parent
83a9edf81d
commit
f88d67f6fb
@ -37,6 +37,19 @@ class UserMailerPreview < ActionMailer::Preview
|
||||
end
|
||||
|
||||
# Preview this email at
|
||||
# http://localhost:3000/rails/mailers/user_mailer/approval_user_signup
|
||||
def approval_user_signup
|
||||
user = User.first
|
||||
UserMailer.approval_user_signup(user, "http://example.com/", @logo, @color, "test@example.com")
|
||||
end
|
||||
|
||||
# Preview this email at
|
||||
# http://localhost:3000/rails/mailers/user_mailer/invite_user_signup
|
||||
def invite_user_signup
|
||||
user = User.first
|
||||
UserMailer.invite_user_signup(user, "http://example.com/", @logo, @color, "test@example.com")
|
||||
end
|
||||
|
||||
# http://localhost:3000/rails/mailers/user_mailer/user_promoted
|
||||
def user_promoted
|
||||
user = User.first
|
||||
|
Reference in New Issue
Block a user