Use the news description as event description #933
This commit is contained in:
parent
df66e9b915
commit
f01194856f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue