Fix for rails 3 before_validation syntax