Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoyoussef committed May 12, 2022
1 parent 7a2256a commit 4fd90b1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/interactions/actions/contact_update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@ def commit
contact.email_history = old_email
updated = contact.save

if updated && email_changed && contact.registrant?
ContactMailer.email_changed(contact: contact, old_email: old_email).deliver_now
end
if updated && email_changed
binding.pry
ContactMailer.email_changed(contact: contact, old_email: old_email).deliver_now if contact.registrant?
en

updated
end
Expand Down

0 comments on commit 4fd90b1

Please sign in to comment.