Quick correction

This commit is contained in:
echarp 2016-09-17 18:22:26 +02:00
parent 9b58ce5480
commit 19d8cb73f9
1 changed files with 0 additions and 1 deletions

View File

@ -9,7 +9,6 @@ module Schedule
private private
def prepare_schedule def prepare_schedule
rule ||= 'daily'
r = IceCube::Rule.send rule.split('_').first r = IceCube::Rule.send rule.split('_').first
if rule == 'monthly_day' if rule == 'monthly_day'
r.day_of_week start_time.wday => [start_time.day / 7 + 1] r.day_of_week start_time.wday => [start_time.day / 7 + 1]