fix bug about delete project

This commit is contained in:
xianbo 2013-10-09 22:31:57 +08:00
parent 3b6f0e3d34
commit 677bc4060b
1 changed files with 1 additions and 1 deletions

View File

@ -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