Fixed bug from last commit. User.ordergroup ist now an 'Ordergroup'\!
This commit is contained in:
parent
e16bebd042
commit
80947b0059
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ require 'digest/sha1'
|
||||||
class User < ActiveRecord::Base
|
class User < ActiveRecord::Base
|
||||||
has_many :memberships, :dependent => :destroy
|
has_many :memberships, :dependent => :destroy
|
||||||
has_many :groups, :through => :memberships
|
has_many :groups, :through => :memberships
|
||||||
has_one :ordergroup, :through => :memberships, :source => :group
|
has_one :ordergroup, :through => :memberships, :source => :group, :class_name => "Ordergroup"
|
||||||
has_many :assignments, :dependent => :destroy
|
has_many :assignments, :dependent => :destroy
|
||||||
has_many :tasks, :through => :assignments
|
has_many :tasks, :through => :assignments
|
||||||
has_many :send_messages, :class_name => "Message", :foreign_key => "sender_id"
|
has_many :send_messages, :class_name => "Message", :foreign_key => "sender_id"
|
||||||
|
|
Loading…
Reference in a new issue