#951 ✓resolved
Ashley Moran

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?

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

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.

New-ticket Create new ticket

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