|
|
|
@ -84,12 +84,9 @@ class User < Principal
|
|
|
|
|
has_many :new_jours, :as => :jour, :class_name => 'JournalsForMessage', :conditions => "status=1"
|
|
|
|
|
has_many :journal_replies, :dependent => :destroy
|
|
|
|
|
has_many :activities, :dependent => :destroy
|
|
|
|
|
has_many :students_for_courses, :dependent => :destroy
|
|
|
|
|
has_many :students_for_courses
|
|
|
|
|
has_many :courses, :through => :students_for_courses, :source => :project
|
|
|
|
|
has_many :acts, :class_name => 'Activity', :as => :act, :dependent => :destroy
|
|
|
|
|
has_many :acts, :class_name => 'Activity', :as => :act, :dependent => :destroy
|
|
|
|
|
has_many :acts, :class_name => 'Activity', :as => :act, :dependent => :destroy
|
|
|
|
|
has_many :acts, :class_name => 'Activity', :as => :act, :dependent => :destroy
|
|
|
|
|
#####
|
|
|
|
|
|
|
|
|
|
######added by nie
|
|
|
|
|