From f01194856f205d43e22026af5a6e186d98df74fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=A4fer?= Date: Sat, 17 Mar 2012 13:55:36 +0100 Subject: [PATCH] Use the news description as event description #933 --- app/models/news.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/news.rb b/app/models/news.rb index 1230bc87..3bf555e6 100644 --- a/app/models/news.rb +++ b/app/models/news.rb @@ -21,7 +21,8 @@ class News < ActiveRecord::Base validates_length_of :title, :maximum => 60 validates_length_of :summary, :maximum => 255 - acts_as_journalized :event_url => Proc.new {|o| {:controller => 'news', :action => 'show', :id => o.journaled_id} } + acts_as_journalized :event_url => Proc.new {|o| {:controller => 'news', :action => 'show', :id => o.journaled_id} }, + :event_description => :description acts_as_searchable :columns => ["#{table_name}.title", "#{table_name}.summary", "#{table_name}.description"], :include => :project acts_as_watchable