diff --git a/app/models/project.rb b/app/models/project.rb index 9d3eb4a3d..5cf53cc8e 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -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