mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
seed aspects on user create
This commit is contained in:
@@ -36,6 +36,7 @@ class User
|
||||
|
||||
|
||||
after_create :setup_person
|
||||
after_create :seed_aspects
|
||||
|
||||
before_validation :do_bad_things
|
||||
before_save :downcase_username
|
||||
@@ -292,6 +293,11 @@ class User
|
||||
opts[:person][:serialized_key] = generate_key
|
||||
User.create!(opts)
|
||||
end
|
||||
|
||||
def seed_aspects
|
||||
aspect(:name => "Family")
|
||||
aspect(:name => "Work")
|
||||
end
|
||||
|
||||
def self.create(opts ={})
|
||||
puts opts.inspect
|
||||
|
||||
Reference in New Issue
Block a user