diff --git a/app/models/person.rb b/app/models/person.rb index 9324fec..107d649 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -1,8 +1,6 @@ # A person is the profile of an user holding all relationships with the rest of the system class Person < Profile acts_as_accessor - - belongs_to :user # has_many :friendships # has_many :friends, :class_name => 'Person', :through => :friendships diff --git a/app/models/profile.rb b/app/models/profile.rb index ee8943c..aef8a31 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -36,6 +36,8 @@ class Profile < ActiveRecord::Base acts_as_taggable + belongs_to :user + has_many :domains, :as => :owner belongs_to :environment -- libgit2 0.21.2