From 4726b1ab4780a8d8033130165eb1628286935dcb Mon Sep 17 00:00:00 2001 From: Jonathan Hefner Date: Mon, 10 Jul 2023 12:11:22 -0500 Subject: [PATCH] Ensure on_rotation appears in RDoc [ci-skip] When a `:method:` doc is immediately followed by the `private` keyword, RDoc will hide that doc as if it were a private method. To ensure that `ActiveSupport::MessageEncryptors#on_rotation` and `ActiveSupport::MessageVerifiers#on_rotation` both appear in the rendered docs, this commit adds a delimiter comment before each `private` keyword. --- activesupport/lib/active_support/message_encryptors.rb | 1 + activesupport/lib/active_support/message_verifiers.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/activesupport/lib/active_support/message_encryptors.rb b/activesupport/lib/active_support/message_encryptors.rb index 44d4374cfc0b4..4fc3d20a1c0ba 100644 --- a/activesupport/lib/active_support/message_encryptors.rb +++ b/activesupport/lib/active_support/message_encryptors.rb @@ -130,6 +130,7 @@ class MessageEncryptors < Messages::RotationCoordinator # indicate whether old option sets are still in use or can be removed from # rotation. + ## private def build(salt, secret_generator:, secret_generator_options:, **options) secret_length = MessageEncryptor.key_len(*options[:cipher]) diff --git a/activesupport/lib/active_support/message_verifiers.rb b/activesupport/lib/active_support/message_verifiers.rb index 8cbd1047989e8..0f7733a3a493e 100644 --- a/activesupport/lib/active_support/message_verifiers.rb +++ b/activesupport/lib/active_support/message_verifiers.rb @@ -126,6 +126,7 @@ class MessageVerifiers < Messages::RotationCoordinator # indicate whether old option sets are still in use or can be removed from # rotation. + ## private def build(salt, secret_generator:, secret_generator_options:, **options) MessageVerifier.new(secret_generator.call(salt, **secret_generator_options), **options)