Merge pull request #163 from kytrinyx/stats-project-view

Simplify stats project view
This commit is contained in:
Matt Rogers 2013-03-01 22:02:39 -08:00
commit ae42f9c076
5 changed files with 19 additions and 47 deletions

View file

@ -145,6 +145,10 @@ class Project < ActiveRecord::Base
@new_record_before_save
end
def age_in_days
@age_in_days ||= (Date.today - created_at.to_date + 1).to_i
end
end
class NullProject