albertosaurus/enumerations_mixin — pull request #2 by akuzko (2011-10-10 15:52:05+00:00)
Title: Added Reflection. Empty strings count as nils enum assignemnt

Added Reflections to make it possible to access arguments passed to has_enumerated declaration.

Modified enum assignment for easier handling parameters passed from form, for example
booking.update_attributes(:status => '') # will assign nil to status, instead of raising error