Skip to content

Commit 00894d9

Browse files
authored
Improve expressivenes
1 parent a98b4cd commit 00894d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/worktimes_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class WorktimesController < CrudController
2323
def index
2424
set_week_days
2525
@notifications = UserNotification.list_during(@period, current_user)
26-
@last_day_of_month = 1.day.from_now.day == 1
26+
@last_day_of_month = Date.today == Date.today.end_of_month
2727
super
2828
end
2929

0 commit comments

Comments
 (0)