修正进项目报错异常

This commit is contained in:
z9hang 2014-07-01 09:15:53 +08:00
parent 9a8c5ebecc
commit 4906bad7d2
1 changed files with 3 additions and 3 deletions

View File

@ -15,9 +15,9 @@ class JournalsForMessage < ActiveRecord::Base
"m_reply_id" # 回复某留言的留言id(a留言回复了b留言这是b留言的id) "m_reply_id" # 回复某留言的留言id(a留言回复了b留言这是b留言的id)
acts_as_tree :foreign_key => 'm_parent_id', :counter_cache => :m_reply_count, :order => "#{JournalsForMessage.table_name}.created_on ASC" acts_as_tree :foreign_key => 'm_parent_id', :counter_cache => :m_reply_count, :order => "#{JournalsForMessage.table_name}.created_on ASC"
belongs_to :project belongs_to :project,
#:foreign_key => 'jour_id', :foreign_key => 'jour_id',
#:conditions => "#{self.table_name}.jour_type = 'Project' " :conditions => "#{self.table_name}.jour_type = 'Project' "
belongs_to :course, belongs_to :course,
:foreign_key => 'jour_id', :foreign_key => 'jour_id',
:conditions => "#{self.table_name}.jour_type = 'Course' " :conditions => "#{self.table_name}.jour_type = 'Course' "