app/models/user.rb
# Weeks end on Friday, so we return Friday for display purposes (add one day for a proper limit)
# On Friday, we still return Friday. On Saturday, we return the following Friday.
Weeks end on Friday, so we return Friday for display purposes (add one day for a proper limit)
On Friday, we still return Friday. On Saturday, we return the following Friday.
Weeks end on Friday so we return Friday for display purposes ( add one day for a proper limit ) On Friday we still return Friday . On Saturday we return the following Friday .
def adjust_end_of_week(date)
    if date.wday == 6
      date + 6.days
    else
      date - date.wday.days + 5.days
    end
  end
def adjust_end_of_week ( date ) if date . wday == 6 date + 6 . days else date - date . wday . days + 5 . days end end
Weeks end on Friday, so we return Friday for display purposes (add one day for a proper limit)
On Friday, we still return Friday.
Weeks end on Friday so we return Friday for display purposes ( add one day for a proper limit ) On Friday we still return Friday .
date
<not_specific>