method

confirmation_value_equal?

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: ActiveModel::Validations::ConfirmationValidator
confirmation_value_equal?(record, attribute, value, confirmed) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/validations/confirmation.rb, line 31
        def confirmation_value_equal?(record, attribute, value, confirmed)
          if !options[:case_sensitive] && value.is_a?(String)
            value.casecmp(confirmed) == 0
          else
            value == confirmed
          end
        end
Register or log in to add new notes.