mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-21 14:52:59 +00:00
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
This commit is contained in:
parent
2cd00fdc29
commit
8992dc9f93
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user