helper method
This commit is contained in:
parent
1d6e132a9f
commit
e6768cb5c8
1 changed files with 3 additions and 1 deletions
|
|
@ -36,7 +36,6 @@ class User
|
||||||
self.person.send(method, *args)
|
self.person.send(method, *args)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
def real_name
|
def real_name
|
||||||
"#{person.profile.first_name.to_s} #{person.profile.last_name.to_s}"
|
"#{person.profile.first_name.to_s} #{person.profile.last_name.to_s}"
|
||||||
end
|
end
|
||||||
|
|
@ -269,6 +268,9 @@ class User
|
||||||
groups.detect{|x| x.id == ensure_bson( id ) }
|
groups.detect{|x| x.id == ensure_bson( id ) }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def tommy?
|
||||||
|
email.include?("tommy@pivotallabs.com") || email.include?("tsullivan@pivotallabs.com")
|
||||||
|
end
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def setup_person
|
def setup_person
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue