Changeset [69b4b9a2237b6a73c708d6fb460caabb0cb8ba01] by snusnu
October 24th, 2010 @ 07:49 PM
Don't hang when a length range's maximum is Infinity
Raise with a meaningful error message instead. It's
not feasible to allow infinitely large persisted
data structures since there's always some form of
constraint in reality, depending on the datastore
or even the physical amount of memory available.
[#1383 state:resolved] http://github.com/datamapper/dm-validations/commit/69b4b9a2237b6a73...
Committed by snusnu
- M lib/dm-validations/auto_validate.rb
- M spec/integration/automatic_validation/inferred_length_validation_spec.rb
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »