Use before_validation instead of before_validation_on_create to use has_uuid with rails 3.1.

-> tests are still running, used it with rails 3.0.9 and 3.1.

This will probably break rails 2 compatibility, hence i forked your repo.