From e28b809271fc1951d3e731994625a825d13e14b8 Mon Sep 17 00:00:00 2001 From: Tim Felgentreff Date: Wed, 15 Sep 2010 14:26:42 +0200 Subject: [PATCH] use direct method call --- app/models/time_entry.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/time_entry.rb b/app/models/time_entry.rb index 46ab2d9d..f606848a 100644 --- a/app/models/time_entry.rb +++ b/app/models/time_entry.rb @@ -26,7 +26,7 @@ class TimeEntry < ActiveRecord::Base attr_protected :project_id, :user_id, :tyear, :tmonth, :tweek acts_as_customizable - acts_as_journalized :event_title => Proc.new {|o| "#{l_hours(o.hours)} (#{(o.issue || o.project).current_journal.event_title})"}, + acts_as_journalized :event_title => Proc.new {|o| "#{l_hours(o.hours)} (#{(o.issue || o.project).event_title})"}, :event_url => Proc.new {|o| {:controller => 'timelog', :action => 'details', :project_id => o.project, :issue_id => o.issue}}, :event_author => :user, :event_description => :comments