rails/rails — pull request #7222 by acapilleri (2012-08-01 12:09:49+00:00)
Title: validates_length with minimum 0 and allow_nil: false accept nil

Given a class that include ActiveModel::Validations with a validation like the following:
validates_length_of(:title, :minimum => 0, :allow_nil => false).
This makes incosistent the validation because it not raise error when
title is *nil*.It should accepts only the empty string
With this patch title is *nil* is handled and the validation accepts only the empty string *""*