diff options
author | Azul <azul@leap.se> | 2014-05-13 14:03:53 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-05-13 14:42:07 +0200 |
commit | bbe9de73352b5aa937173b4158267f6a37e9ca5f (patch) | |
tree | 3006005b5f700adcee472cf8bf1d701c241a6d30 /app/models/anonymous_user.rb | |
parent | 81a4a0527639fe4b560b8d98f977f6dbac67bb41 (diff) |
destinguish user.email from user.email_address
use the former if you want a working email account or nil, the
latter if you want the email address associated with a given
user no matter if the user actually has an email account or not.
Diffstat (limited to 'app/models/anonymous_user.rb')
-rw-r--r-- | app/models/anonymous_user.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/anonymous_user.rb b/app/models/anonymous_user.rb index 360a577..87239eb 100644 --- a/app/models/anonymous_user.rb +++ b/app/models/anonymous_user.rb @@ -13,6 +13,10 @@ class AnonymousUser < Object nil end + def email + nil + end + def email_address nil end |