okay, I am tired, I am just gonna continue this effort sat night or sun. Anyways, some of the main things this app should do are running so not a bad day. I would say we are only a couple days from beta release.

This commit is contained in:
Ken Johnson
2013-05-25 03:01:53 -04:00
parent 2acc5af274
commit daddb138a5
3 changed files with 22 additions and 7 deletions
+14
View File
@@ -1,5 +1,19 @@
class PaidTimeOff < ActiveRecord::Base
attr_accessible :pto_earned, :pto_taken, :sick_days_earned, :sick_days_taken, :user_id
belongs_to :user
# Refactor this duplication when it's not 3am
def sick_days_remaining(val="")
self.sick_days_earned - self.sick_days_taken
end
def pto_days_remaining(val="")
self.pto_earned - self.pto_taken
end
def pto_percentages
end
end