method

secure_compare!

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: SecureCompareRotator
secure_compare!(other_value, on_rotation: @on_rotation) public

No documentation

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

Hide source
# File activesupport/lib/active_support/secure_compare_rotator.rb, line 47
    def secure_compare!(other_value, on_rotation: @on_rotation)
      if secure_compare(@value, other_value)
        true
      elsif @rotate_values.any? { |value| secure_compare(value, other_value) }
        on_rotation&.call
        true
      else
        raise InvalidMatch
      end
    end
Register or log in to add new notes.