Skip to content

Commit fc1a432

Browse files
authored
Merge pull request rails#52502 from yahonda/follow_up_52483
Address `warning: the block passed to 'Pilot.generates_token_for'` warning against ruby 3.4.0dev
2 parents a5ffec5 + 24892eb commit fc1a432

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activemodel/test/models/pilot.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class Pilot
44
include ActiveModel::Attributes
55
include ActiveModel::SecurePassword
66

7-
def self.generates_token_for(purpose, expires_in: nil)
7+
def self.generates_token_for(purpose, expires_in: nil, &)
88
@@expires_in = expires_in
99
end
1010

0 commit comments

Comments
 (0)