recurring_select
recurring_select copied to clipboard
Editing Inconsistencies
I am having some inconsistencies with editing recurring rules. Here is my model:
Create
rule = RecurringSelect.dirty_hash_to_rule(@repeating_task.recurring_rule)
@repeating_task.recurring_rule = rule.to_yaml
Edit
rule = @repeating_task.recurring_rule
if RecurringSelect.is_valid_rule?(rule)
IceCube::Schedule.from_yaml(rule)
end
@repeating_task.recurring_rule = rule
Form
<%= f.select_recurring :recurring_rule, nil, allow_blank: false %>
I am getting the following .. some of the time:
There are a few rules that do work just fine. Some are coming up as "Custom", which is odd.
Any thoughts on how this could be fixed?