Commits on Mar 25, 2011
options.assert_valid_keys( :within, :minimum, :maximum ) - not good idea raise_exception because validators has option's keys such as :allow_blank, :allow_nil. Likes as uniqueness_of matcher, with/without this options - different validators, not should be passed.
… using model.class.validators method
Rails 3 validate_uniqueness_of has some options key, like such the :scope, :case_sensitive, :allow_nil and more. If we are no have this options in validate_uniqueness_of matcher, but not have in the matched model - this is different validations and not should be match. Used model.class.validators method for find matched ActiveRecord validation, no model.send approach.
Commits on Mar 24, 2011
…key-patched Hash class with added deep_include? instance method.unitymind committed
Mar 24, 2011
Commits on Mar 16, 2010
Commits on Mar 4, 2010
Commits on Feb 25, 2010
Commits on Feb 24, 2010