diff options
author | James Lopez <james@jameslopez.es> | 2017-06-25 09:34:06 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-06-25 09:34:06 +0300 |
commit | 4d70c479107fc502668a83fc369159062d8efbb8 (patch) | |
tree | c15f975b9197ec8c13aede6ed04601249512e955 /app/models | |
parent | ae9531052392c3f66ddaf82094f88adc456af8e9 (diff) |
fix spec failures
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/user.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index e95334e2542..7a1bce25599 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -494,8 +494,8 @@ class User < ActiveRecord::Base def update_emails_with_primary_email primary_email_record = emails.find_by(email: email) if primary_email_record - Emails::DestroyService.new(self, self, email: email).execute - Emails::CreateService.new(self, self, email: email_was).execute + Emails::DestroyService.new(self, email: email).execute + Emails::CreateService.new(self, email: email_was).execute end end |