instance method
secure_compare!
Ruby on Rails 7.0.10
Since v6.1.7.10Signature
secure_compare!(other_value, on_rotation: @on_rotation)
No documentation comment.
Parameters
-
other_valuereq -
on_rotationkey = @on_rotation
Source
# File activesupport/lib/active_support/secure_compare_rotator.rb, line 40
def secure_compare!(other_value, on_rotation: @on_rotation)
secure_compare(@value, other_value) ||
run_rotations(on_rotation) { |wrapper| wrapper.secure_compare!(other_value) } ||
raise(InvalidMatch)
end
Defined in activesupport/lib/active_support/secure_compare_rotator.rb line 40
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::SecureCompareRotator