From e6768cb5c8831f56aa7e064097a65e8a821cb385 Mon Sep 17 00:00:00 2001 From: Raphael Date: Tue, 17 Aug 2010 13:21:29 -0700 Subject: [PATCH] helper method --- app/models/user.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 53cde243e..109a2d987 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -36,7 +36,6 @@ class User self.person.send(method, *args) end - def real_name "#{person.profile.first_name.to_s} #{person.profile.last_name.to_s}" end @@ -269,6 +268,9 @@ class User groups.detect{|x| x.id == ensure_bson( id ) } end + def tommy? + email.include?("tommy@pivotallabs.com") || email.include?("tsullivan@pivotallabs.com") + end protected def setup_person