Skip to content

Commit 7e0fab6

Browse files
Use ::new instead of #initialize for ghost methods [ci-skip]
RDoc translates `#initialize` to `::new` for real methods, but it does not do so for ghost methods.
1 parent 7b10c32 commit 7e0fab6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

activesupport/lib/active_support/message_encryptors.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class MessageEncryptors < Messages::RotationCoordinator
2828
# <tt>transitional = false</tt>.
2929

3030
##
31-
# :method: initialize
32-
# :call-seq: initialize(&secret_generator)
31+
# :singleton-method: new
32+
# :call-seq: new(&secret_generator)
3333
#
3434
# Initializes a new instance. +secret_generator+ must accept a salt and a
3535
# +secret_length+ kwarg, and return a suitable secret (string) or secrets

activesupport/lib/active_support/message_verifiers.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class MessageVerifiers < Messages::RotationCoordinator
2828
# <tt>transitional = false</tt>.
2929

3030
##
31-
# :method: initialize
32-
# :call-seq: initialize(&secret_generator)
31+
# :singleton-method: new
32+
# :call-seq: new(&secret_generator)
3333
#
3434
# Initializes a new instance. +secret_generator+ must accept a salt, and
3535
# return a suitable secret (string). +secret_generator+ may also accept

0 commit comments

Comments
 (0)