Start with a group'

This commit is contained in:
Raphael 2010-08-17 18:30:08 -07:00
parent 8619584834
commit 07549ed17e

View file

@ -18,6 +18,7 @@ class User
before_validation_on_create :setup_person
before_create :pivotal_or_diaspora_only
after_create :seed_groups
######## Making things work ########
key :email, String
@ -298,6 +299,10 @@ class User
def tommy?
email.include?("tommy@pivotallabs.com") || email.include?("tsullivan@pivotallabs.com")
end
def seed_groups
group(:name => "pivots")
end
protected
def setup_person