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

Something terrible happens when count is set to nil. #94

Closed
lmanners opened this issue Aug 13, 2012 · 1 comment
Closed

Something terrible happens when count is set to nil. #94

lmanners opened this issue Aug 13, 2012 · 1 comment

Comments

@lmanners
Copy link

I found myself needing to remove the count validation from a rule. I attempted to do this by calling:

rule.count(nil)

However, this does not remove the count validation. Instead it sets the count value to nil. If I then try to call a method like occurrences_between after doing this, I get an exception (because count is nil).

Is there a better way to remove a count validation from a rule?

seejohnrun added a commit that referenced this issue Oct 11, 2012
@seejohnrun
Copy link
Collaborator

All set - thanks for the suggestion - also applies to #until - will be released with 0.9.0

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

2 participants