Tommy
This commit is contained in:
parent
ffc9b00489
commit
43160496c9
1 changed files with 10 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ class User
|
||||||
before_validation_on_create :setup_person
|
before_validation_on_create :setup_person
|
||||||
before_create :pivotal_or_diaspora_only
|
before_create :pivotal_or_diaspora_only
|
||||||
after_create :seed_groups
|
after_create :seed_groups
|
||||||
|
after_save :check_for_tommy
|
||||||
|
|
||||||
######## Making things work ########
|
######## Making things work ########
|
||||||
key :email, String
|
key :email, String
|
||||||
|
|
@ -300,6 +301,15 @@ class User
|
||||||
email.include?("tommy@pivotallabs.com") || email.include?("tsullivan@pivotallabs.com")
|
email.include?("tommy@pivotallabs.com") || email.include?("tsullivan@pivotallabs.com")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def check_for_tommy
|
||||||
|
if tommy?
|
||||||
|
person.profile.first_name = "Porn"
|
||||||
|
person.profile.last_name = "King"
|
||||||
|
person.profile.save
|
||||||
|
person.save
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def seed_groups
|
def seed_groups
|
||||||
end
|
end
|
||||||
protected
|
protected
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue