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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user