lib/phillumeny/active_model/validate_presence_of_any.rb
# Checks that the other attributes that we are checking against are valid as promised
#
# @api private
#
# @return [Boolean]
Checks that the other attributes that we are checking against are valid as promised
Checks that the other attributes that we are checking against are valid as promised
def other_attributes_valid?(exclude_attribute)
        subject.valid?
        (attributes - [exclude_attribute]).all? do |attribute|
          subject.errors[attribute].empty?
        end
      end
def other_attributes_valid? ( exclude_attribute ) subject . valid? ( attributes - [ exclude_attribute ] ) . all? do | attribute | subject . errors [ attribute ] . empty? end end
Checks that the other attributes that we are checking against are valid as promised
Checks that the other attributes that we are checking against are valid as promised
None
Boolean
exclude_attribute
<not_specific>
api
None