lib/phillumeny/active_model/validate_presence_of_any.rb
# Checks that the current attribute we are checking against passes its other validations
#
# @api private
#
# @return [Boolean]
Checks that the current attribute we are checking against passes its other validations
Checks that the current attribute we are checking against passes its other validations
def free_of_errors_on_attribute?(attribute)
        subject.class.validators_on(attribute).each do |validator|
          validator.validate_each(subject, attribute, subject.send(attribute))
        end
        subject.errors[attribute].empty?
      end
def free_of_errors_on_attribute? ( attribute ) subject . class . validators_on ( attribute ) . each do | validator | validator . validate_each ( subject , attribute , subject . send ( attribute ) ) end subject . errors [ attribute ] . empty? end
Checks that the current attribute we are checking against passes its other validations
Checks that the current attribute we are checking against passes its other validations
# Can/do we use self[attribute] here or would that be better used in the # conditional Proc on the validation itself?
None
Boolean
attribute
<not_specific>
api
None