seejohnrun/ice_cube — Issue #62: Adding multiple rules
Author: ftheo
Created: 2012-01-29 23:43:23+00:00
State: open

I am trying to add a rule to occur every week spending on what the user selected (e.g. every Monday, Tuesday and Thursday). However if add multiple rules I get the following error

undefined method `reset' for nil:NilClass

in line where event.schedule.each_occurrence { |t| ... }

I don't see a way to add a rule like the following

list = [:monday, :tuesday, :thursday]
schedule.add_recurrence_rule Rule.weekly(1).day(list)