diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-22 18:52:00 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-22 18:52:00 +0000 |
commit | 898fac293b3d8042de3c1747776fac90d3ed40fa (patch) | |
tree | 1060a3fe53e880892ebb78df12d5311bf14b54c7 /app/models/time_entry.rb | |
parent | 590a829a06d4106f7827ddf242a0de5c0ca3e197 (diff) | |
download | redmine-898fac293b3d8042de3c1747776fac90d3ed40fa.tar.gz redmine-898fac293b3d8042de3c1747776fac90d3ed40fa.zip |
Adds custom fields on time entries (#772).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1689 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/time_entry.rb')
-rw-r--r-- | app/models/time_entry.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/time_entry.rb b/app/models/time_entry.rb index 759f9bed0..57a75604d 100644 --- a/app/models/time_entry.rb +++ b/app/models/time_entry.rb @@ -25,6 +25,7 @@ class TimeEntry < ActiveRecord::Base attr_protected :project_id, :user_id, :tyear, :tmonth, :tweek + acts_as_customizable acts_as_event :title => Proc.new {|o| "#{o.user}: #{lwr(:label_f_hour, o.hours)} (#{(o.issue || o.project).event_title})"}, :url => Proc.new {|o| {:controller => 'timelog', :action => 'details', :project_id => o.project}}, :author => :user, |