Add in_current_month? method to the TimeEntry model
This commit is contained in:
parent
68c6a337a1
commit
d613a095e1
|
@ -427,6 +427,10 @@ module StopTime::Models
|
|||
((self.end - self.start) / 1.hour).round(2)
|
||||
end
|
||||
|
||||
def in_current_month?
|
||||
self.end.month == Time.now.month
|
||||
end
|
||||
|
||||
#########
|
||||
protected
|
||||
|
||||
|
|
Loading…
Reference in New Issue