Fixed bugs from last commit and in ExceptionNotification-config.

This commit is contained in:
Benjamin Meichsner 2009-02-02 17:12:08 +01:00
parent 0a2a79237a
commit aec93d4b73
4 changed files with 6 additions and 5 deletions

View file

@ -23,6 +23,7 @@ class User < ActiveRecord::Base
has_many :memberships, :dependent => :destroy
has_many :groups, :through => :memberships
has_one :ordergroup, :through => :memberships, :source => :group, :class_name => "Ordergroup"
has_many :workgroups, :through => :memberships, :source => :group, :class_name => "Workgroup"
has_many :assignments, :dependent => :destroy
has_many :tasks, :through => :assignments
has_many :send_messages, :class_name => "Message", :foreign_key => "sender_id"