From af3b32fa892456a87aac508a155698d2b640da66 Mon Sep 17 00:00:00 2001 From: yanxd Date: Fri, 14 Mar 2014 21:25:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=96=E5=AD=90=E5=86=85=E5=AE=B9=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/memo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/memo.rb b/app/models/memo.rb index 31b412a43..2e4ddb810 100644 --- a/app/models/memo.rb +++ b/app/models/memo.rb @@ -4,7 +4,7 @@ class Memo < ActiveRecord::Base belongs_to :author, :class_name => "User", :foreign_key => 'author_id' validates_presence_of :author_id, :forum_id, :subject - validates :content, presence: true + #validates :content, presence: true validates_length_of :subject, maximum: 50 #validates_length_of :content, maximum: 3072 validate :cannot_reply_to_locked_topic, :on => :create