Class not class_name
This commit is contained in:
parent
3abb2c9751
commit
03eea3fc08
1 changed files with 7 additions and 7 deletions
|
|
@ -42,17 +42,17 @@ class User
|
||||||
validates_presence_of :person, :unless => proc {|user| user.invitation_token.present?}
|
validates_presence_of :person, :unless => proc {|user| user.invitation_token.present?}
|
||||||
validates_associated :person
|
validates_associated :person
|
||||||
|
|
||||||
one :person, :class_name => 'Person', :foreign_key => :owner_id
|
one :person, :class => Person, :foreign_key => :owner_id
|
||||||
|
|
||||||
many :invitations_from_me, :class => Invitation, :foreign_key => :from_id
|
many :invitations_from_me, :class => Invitation, :foreign_key => :from_id
|
||||||
many :invitations_to_me, :class => Invitation, :foreign_key => :to_id
|
many :invitations_to_me, :class => Invitation, :foreign_key => :to_id
|
||||||
many :contacts, :class_name => 'Contact', :foreign_key => :user_id
|
many :contacts, :class => Contact, :foreign_key => :user_id
|
||||||
many :visible_people, :in => :visible_person_ids, :class_name => 'Person' # One of these needs to go
|
many :visible_people, :in => :visible_person_ids, :class => Person # One of these needs to go
|
||||||
many :pending_requests, :in => :pending_request_ids, :class_name => 'Request'
|
many :pending_requests, :in => :pending_request_ids, :class => Request
|
||||||
many :raw_visible_posts, :in => :visible_post_ids, :class_name => 'Post'
|
many :raw_visible_posts, :in => :visible_post_ids, :class => Post
|
||||||
many :aspects, :class_name => 'Aspect', :dependent => :destroy
|
many :aspects, :class => Aspect, :dependent => :destroy
|
||||||
|
|
||||||
many :services, :class_name => "Service"
|
many :services, :class => Service
|
||||||
|
|
||||||
#after_create :seed_aspects
|
#after_create :seed_aspects
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue