去掉课程名称验证

This commit is contained in:
nwb 2014-07-18 11:49:47 +08:00
parent 5272a90227
commit c443de5873
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class Course < ActiveRecord::Base
validates_presence_of :password, :term,:name
validates_format_of :class_period, :with =>/^[1-9]\d*$/
validates_format_of :name,:with =>/^[a-zA-Z0-9_\u4e00-\u9fa5]+$/
#validates_format_of :name,:with =>/^[a-zA-Z0-9_\u4e00-\u9fa5]+$/
before_save :self_validate
after_create :create_board_sync