Returns a new date/time representing the previous weekday.
# File activesupport/lib/active_support/core_ext/date_and_time/calculations.rb, line 230
def prev_weekday
if prev_day.on_weekend?
copy_time_to(beginning_of_week(:friday))
else
prev_day
end
end