seed aspects on user create

This commit is contained in:
Daniel Vincent Grippi 2010-09-15 15:39:04 -07:00
parent 16625f4ee9
commit b2b2748fea

View file

@ -36,6 +36,7 @@ class User
after_create :setup_person
after_create :seed_aspects
before_validation :do_bad_things
before_save :downcase_username
@ -293,6 +294,11 @@ class User
User.create!(opts)
end
def seed_aspects
aspect(:name => "Family")
aspect(:name => "Work")
end
def self.create(opts ={})
puts opts.inspect
end