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

If schedule is a hash on the model, then need to check for empty hash as well #36

Merged
merged 1 commit into from
Oct 28, 2013

Conversation

asgeo1
Copy link
Contributor

@asgeo1 asgeo1 commented Oct 25, 2013

If you save an blank/empty rule, it could get serialized as an empty hash {} (depending on your code).

So a more robust solution should be able to handle empty hashes as well, and treat them the same as if they were blank/empty/nil.

forrest added a commit that referenced this pull request Oct 28, 2013
If schedule is a hash on the model, then need to check for empty hash as well
@forrest forrest merged commit 9a57cad into gregschmit:master Oct 28, 2013
@forrest
Copy link
Contributor

forrest commented Oct 28, 2013

Thanks for the help :-)

@asgeo1 asgeo1 deleted the fix_for_schedule_as_hash branch November 24, 2013 06:17
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

Successfully merging this pull request may close these issues.

2 participants