rails/rails — pull request #9917 by senny (2013-03-25 15:14:48+00:00)
Title: specific length validator for ActiveRecord to respect `mark_for_destruction`.

I implemented a separate validator to ensure that records, which are marked for destruction do not count when validating the length.

I also noticed that AR already had specific length tests, which I moved into a separate test-case.

This is a fix for #7247.