Add in_current_month? method to the TimeEntry model
This commit is contained in:
parent
68c6a337a1
commit
d613a095e1
1 changed files with 4 additions and 0 deletions
|
@ -427,6 +427,10 @@ module StopTime::Models
|
||||||
((self.end - self.start) / 1.hour).round(2)
|
((self.end - self.start) / 1.hour).round(2)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def in_current_month?
|
||||||
|
self.end.month == Time.now.month
|
||||||
|
end
|
||||||
|
|
||||||
#########
|
#########
|
||||||
protected
|
protected
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue