diff options
author | Azul <azul@leap.se> | 2012-12-12 15:41:14 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-12-12 15:41:14 +0100 |
commit | 60e8fc3e1309d1c972a7695e3344e63f5d633a06 (patch) | |
tree | d4bdc2d2e45702d5241c22404d77e8e4b2205378 /users/app/models/email.rb | |
parent | d9fa19106998bc6ac484494334dcf150bb6aa5d5 (diff) |
find users by email and aliases
Diffstat (limited to 'users/app/models/email.rb')
-rw-r--r-- | users/app/models/email.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/users/app/models/email.rb b/users/app/models/email.rb index 7c88c51..45101c1 100644 --- a/users/app/models/email.rb +++ b/users/app/models/email.rb @@ -3,11 +3,9 @@ class Email property :email, String - validates :email_forward, + validates :email, :format => { :with => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/, :message => "needs to be a valid email address"} - timestamps! - def to_s email end |