diff options
author | jessib <jessib@riseup.net> | 2013-09-05 13:10:23 -0700 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2013-09-05 13:10:23 -0700 |
commit | b79d8ae03339e2957c50111f0eae405ca1440674 (patch) | |
tree | 1ea3073399a88645d6d5f5b1437603b72ba94664 /users/app/models/email.rb | |
parent | 07d0f6fe1d80cb730bd12a03a107c18d18779acc (diff) |
Move handle method to Email model and have it work for local and non-local emails.
Diffstat (limited to 'users/app/models/email.rb')
-rw-r--r-- | users/app/models/email.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/users/app/models/email.rb b/users/app/models/email.rb index 1bcff1c..89c31bb 100644 --- a/users/app/models/email.rb +++ b/users/app/models/email.rb @@ -19,4 +19,8 @@ class Email < String self end + def handle + self.split('@').first + end + end |