app/helpers/schedules_helper.rb
# end_of_week beginning with Sunday not Monday as Rails version
end_of_week beginning with Sunday not Monday as Rails version
end_of_week beginning with Sunday not Monday as Rails version
def j_end_of_week(datetime)
    time = datetime
    datetime.wday == 0 and time = datetime + 1.day
    time.end_of_week - 1.day
  end
def j_end_of_week ( datetime ) time = datetime datetime . wday == 0 and time = datetime + 1 . day time . end_of_week - 1 . day end
end_of_week beginning with Sunday not Monday as Rails version
end_of_week beginning with Sunday not Monday as Rails version
datetime
<not_specific>