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