twinslash/enumerize — pull request #30 by jimryan (2012-03-28 05:19:14+00:00)
Title: Cast empty string values to nil for validations

Here you go. This casts empty string values to ``nil`` for validation purposes so they pass through the inclusion validator.

I realize that we discussed our options and settled on this, but part of me is still wondering if we should have went the ``:allow_blank => true`` route. It accomplishes the same thing with cleaner code and without changing the value that other validations will see. Thoughts on this?

Jim