Further improve time comparison in Project model

This commit is contained in:
Dan Rice 2014-03-30 21:36:31 -04:00
parent ece69b8540
commit 8e13059df1

View file

@ -136,7 +136,7 @@ class Project < ActiveRecord::Base
end
def age_in_days
@age_in_days ||= (Time.now.to_date - created_at.to_date).to_i + 1
@age_in_days ||= (Time.current.to_date - created_at.to_date).to_i + 1
end
def self.import(filename, params, user)