Start with a group'
This commit is contained in:
parent
8619584834
commit
07549ed17e
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue