diff options
author | Azul <azul@leap.se> | 2012-12-17 17:48:39 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-12-17 17:48:39 +0100 |
commit | b90ce01890907d1c7f46f46bafcef416570a4c4b (patch) | |
tree | f8f7ac9560b37bba6272b0251f0be4d65e691314 /users/app/models/email.rb | |
parent | 7528695461f2c5725fe29787aa6bf703050a1a4a (diff) |
enabled destroying email aliases - no ajax yet.
Diffstat (limited to 'users/app/models/email.rb')
-rw-r--r-- | users/app/models/email.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/users/app/models/email.rb b/users/app/models/email.rb index 4b01838..0745fda 100644 --- a/users/app/models/email.rb +++ b/users/app/models/email.rb @@ -14,4 +14,12 @@ class Email def to_s email end + + def ==(other) + other.is_a?(String) ? self.email == other : super + end + + def to_param + email + end end |