diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-07-26 12:48:55 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-07-26 12:51:53 +0900 |
commit | 971cd757eaeb6da34a256b35457749d067073c03 (patch) | |
tree | e837833f4398b68459f7a08640cb286b6666a8ea /activesupport/lib/active_support | |
parent | e5dc101cc51c89b0c585fbe7f40d72408bec19c6 (diff) | |
download | rails-971cd757eaeb6da34a256b35457749d067073c03.tar.gz rails-971cd757eaeb6da34a256b35457749d067073c03.tar.bz2 rails-971cd757eaeb6da34a256b35457749d067073c03.zip |
Use correct variable in `secure_compare!`
`Messages::Rotator` has `@on_rotation` not `@rotation`.
https://github.com/rails/rails/blob/72bc0806a7b378cd544e8fbf7ab22d74b7913ffb/activesupport/lib/active_support/messages/rotator.rb#L11
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/secure_compare_rotator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/secure_compare_rotator.rb b/activesupport/lib/active_support/secure_compare_rotator.rb index 14a0aee947..97110d41f7 100644 --- a/activesupport/lib/active_support/secure_compare_rotator.rb +++ b/activesupport/lib/active_support/secure_compare_rotator.rb @@ -37,7 +37,7 @@ 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) |