Depend on Rails 4.0.0rc1 to test Rails 4 compatibility
Use Rails 4 API to fix warnings and test failure
Rollback to 3.1
Remove return from before_validation callback for Rails 4 compatibility
Fix test