mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
Refactoring
This commit is contained in:
parent
8e977da1e5
commit
68999a4099
1 changed files with 1 additions and 2 deletions
|
@ -111,8 +111,7 @@ module Actions
|
|||
contact.attributes = new_attributes
|
||||
|
||||
email_changed = contact.will_save_change_to_email?
|
||||
old_email = contact.email_was
|
||||
contact.email_history = old_email
|
||||
contact.email_history = contact.email_was
|
||||
updated = contact.save
|
||||
|
||||
if updated && email_changed && contact.registrant?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue