You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trustieforge/app/models/course.rb

16 lines
335 B

class Course < ActiveRecord::Base
include Redmine::SafeAttributes
attr_accessible :code, :extra, :name, :state, :tea_id, :time
belongs_to :project, :class_name => 'Project', :foreign_key => :tea_id
has_many :bid
validates_presence_of :code, :time
safe_attributes 'extra',
'time',
'name',
'extra',
'code'
end