解决通知太长不能发的问题

This commit is contained in:
huang 2015-12-21 14:00:09 +08:00
parent ab1397d982
commit c381ce177f
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class News < ActiveRecord::Base
validates_presence_of :title, :description
validates_length_of :title, :maximum => 60
validates_length_of :summary, :maximum => 255
validates_length_of :description, :maximum => 10000
# validates_length_of :description, :maximum => 10000
acts_as_attachable :delete_permission => :manage_news
acts_as_searchable :columns => ['title', 'summary', "#{table_name}.description"], :include => :project