Skip to content

Commit e63b83b

Browse files
committed
Remove detailed_message shim in Rails::Command
Now that we require Ruby 3.2, we can assume it's defined.
1 parent dcb256d commit e63b83b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

railties/lib/rails/command.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ def initialize(message, name, alternatives)
2323
super(message)
2424
end
2525

26-
if !Exception.method_defined?(:detailed_message) # Ruby 3.2+
27-
def detailed_message(...)
28-
message
29-
end
30-
end
31-
3226
if defined?(DidYouMean::Correctable) && defined?(DidYouMean::SpellChecker)
3327
include DidYouMean::Correctable
3428

0 commit comments

Comments
 (0)