Skip to content

Commit

Permalink
Remove second declaration of confirmation email
Browse files Browse the repository at this point in the history
  • Loading branch information
jahseng-lee committed Dec 12, 2023
1 parent e73a555 commit 82cefbf
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions app/mailers/devise_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,5 @@ def reset_password_instructions(record, token, opts = {})
message_stream: "outbound"
)
end

def confirmation_instructions(record, token, opts = {})
self.template_model = ApplicationMailer::DEFAULT_ARGS.merge({
action_url: confirmation_url(record, confirmation_token: token),
display_name: record.display_name,
})

mail(
to: record.email,
postmark_template_alias: "confirmation-instructions",
track_opens: "true",
message_stream: "outbound"
)
end
end

0 comments on commit 82cefbf

Please sign in to comment.