Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing Inconsistencies #84

Open
jbolles5 opened this issue Apr 13, 2015 · 0 comments
Open

Editing Inconsistencies #84

jbolles5 opened this issue Apr 13, 2015 · 0 comments

Comments

@jbolles5
Copy link

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:
screenshot 2015-04-13 12 21 07

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant