fix bug about delete project
This commit is contained in:
parent
3b6f0e3d34
commit
677bc4060b
|
@ -70,7 +70,7 @@ class Project < ActiveRecord::Base
|
|||
|
||||
has_one :wiki, :dependent => :destroy
|
||||
##added by xianbo
|
||||
has_one :course, :dependent => :destroy ,:order => "#{Version.table_name}.effective_date DESC, #{Version.table_name}.name DESC"
|
||||
has_one :course, :order => "#{Version.table_name}.effective_date DESC, #{Version.table_name}.name DESC"
|
||||
accepts_nested_attributes_for :course
|
||||
##end
|
||||
# Custom field for the project issues
|
||||
|
|
Loading…
Reference in New Issue