Please sign in to comment.
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 *""* It should fix #7180
- Loading branch information...
Showing with 23 additions and 3 deletions.