Commit 3d47218e authored by Committed by Mario Manno
Person: nilify gender field if set to empty
For useful stats, it's important not to have a mixture of nil and "" in the gender field of Person objects. Use an before_save callback to make sure we always have nil instead of "".
Showing with 6 additions and 0 deletions