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