summaryrefslogtreecommitdiffstats
path: root/app/models/time_entry.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-05 12:37:00 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-05 12:37:00 +0000
commit8992dc9f93dc9b19652614efe23547e77b123917 (patch)
treed706bf7210177660fcc0d4f7fdd9fc8863b53f17 /app/models/time_entry.rb
parent2cd00fdc295b7f67668e45a0fc23f49ec93a1eb3 (diff)
downloadredmine-8992dc9f93dc9b19652614efe23547e77b123917.tar.gz
redmine-8992dc9f93dc9b19652614efe23547e77b123917.zip
Removed dead code, Rails4 handles that in its attribute writer.
git-svn-id: http://svn.redmine.org/redmine/trunk@13716 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/time_entry.rb')
-rw-r--r--app/models/time_entry.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/app/models/time_entry.rb b/app/models/time_entry.rb
index c875afbb1..870b15548 100644
--- a/app/models/time_entry.rb
+++ b/app/models/time_entry.rb
@@ -104,9 +104,6 @@ class TimeEntry < ActiveRecord::Base
# these attributes make time aggregations easier
def spent_on=(date)
super
- if spent_on.is_a?(Time)
- self.spent_on = spent_on.to_date
- end
self.tyear = spent_on ? spent_on.year : nil
self.tmonth = spent_on ? spent_on.month : nil
self.tweek = spent_on ? Date.civil(spent_on.year, spent_on.month, spent_on.day).cweek : nil