diff options
Diffstat (limited to 'users/app/models')
-rw-r--r-- | users/app/models/local_email.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/users/app/models/local_email.rb b/users/app/models/local_email.rb index 5762a33..7cca4f4 100644 --- a/users/app/models/local_email.rb +++ b/users/app/models/local_email.rb @@ -2,6 +2,10 @@ class LocalEmail < Email validate :unique_on_server + def to_partial_path + "emails/email" + end + def unique_on_server has_email = User.find_by_email_or_alias(email) if has_email && has_email != self.base_doc |