aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/secure_compare_rotator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/secure_compare_rotator.rb')
-rw-r--r--activesupport/lib/active_support/secure_compare_rotator.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/secure_compare_rotator.rb b/activesupport/lib/active_support/secure_compare_rotator.rb
index 14a0aee947..269703c34a 100644
--- a/activesupport/lib/active_support/secure_compare_rotator.rb
+++ b/activesupport/lib/active_support/secure_compare_rotator.rb
@@ -37,14 +37,13 @@ module ActiveSupport
@value = value
end
- def secure_compare!(other_value, on_rotation: @rotation)
+ 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
private
-
def build_rotation(previous_value, _options)
self.class.new(previous_value)
end