|
|
|
@ -27,8 +27,10 @@ class JournalsForMessage < ActiveRecord::Base
|
|
|
|
|
:datetime => Proc.new {|o| o.updated_on },
|
|
|
|
|
:author => Proc.new {|o| o.user },
|
|
|
|
|
:description => Proc.new{|o| o.notes },
|
|
|
|
|
:type => Proc.new {|o| o.jour_type }#,
|
|
|
|
|
#:url => Proc.new {|o| ''}#{:controller => 'documents', :action => 'show', :id => o.id}}
|
|
|
|
|
:type => Proc.new {|o| o.jour_type },
|
|
|
|
|
:url => Proc.new {|o|
|
|
|
|
|
(o.jour.kind_of? Project) ? {:controller => 'projects', :action => 'feedback', :id => o.jour, :r => o.id, :anchor => "word_li_#{o.id}"} : {}
|
|
|
|
|
}#{:controller => 'documents', :action => 'show', :id => o.id}}
|
|
|
|
|
acts_as_activity_provider :author_key => :user_id,
|
|
|
|
|
:timestamp => "#{self.table_name}.updated_on",
|
|
|
|
|
:find_options => {:include => :project }
|
|
|
|
|