
DataMapper::Validate::AutoValidate#disabled_auto_validations? can return nil
Reported by Ashley Moran | July 6th, 2009 @ 01:35 PM | in 0.10.0
The following method, defined in
dm-validations/auto_validate.rb, is documented to return
true
or false
, but we have observed it
returning nil:
# Checks whether auto validations are currently
# disabled (see +disable_auto_validations+ method
# that takes a block)
#
# @return [TrueClass, FalseClass]
# true if auto validation is currently
# disabled
def disabled_auto_validations?
@disable_auto_validations
end
I don't know if this is an issue, but it was unexpected behaviour observed tracking down a random failure bug (to be reported soon).
Comments and changes to this ticket
-
Martin Gamsjaeger (snusnu) July 9th, 2009 @ 12:39 PM
- Assigned user set to Martin Gamsjaeger (snusnu)
- State changed from new to accepted
-
Dan Kubb (dkubb) July 10th, 2009 @ 01:20 PM
- State changed from accepted to resolved
(from [b64dfdcff68eac6df1654a26ed64659c19bfc5a1]) [dm-validations] respect documented return types
- DataMapper::Validate::AutoValidate#disabled_auto_validations? is documented to return true or false, yet it returned nil in some cases
[#951 state:resolved] http://github.com/datamapper/dm-more/commit/b64dfdcff68eac6df1654a2...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
People watching this ticket
Referenced by
-
951 DataMapper::Validate::AutoValidate#disabled_auto_validations? can return nil [#951 state:resolved] http://github.com/datamapper/dm-mo...