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