module ActiveSupport::Messages::Rotator::Encryptor

def decrypt_and_verify(*args, on_rotation: @on_rotation, **options)

def decrypt_and_verify(*args, on_rotation: @on_rotation, **options)
  super
rescue MessageEncryptor::InvalidMessage, MessageVerifier::InvalidSignature
  run_rotations(on_rotation) { |encryptor| encryptor.decrypt_and_verify(*args, **options) } || raise
end