5

"Middleware#remove" is renamed "Middleware#delete!" by sato1...

 3 years ago
source link: https://github.com/rails/rails/pull/42867
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Copy link

Contributor

sato11 commented 7 days ago

Summary

This commit intends to clarify the difference between
Middleware#delete and Middleware#delete!.

The former method silently fails when the target item is
not found, while the latter raises an error.

The functionality of delete! has been introduced in 688ed70
and given a name remove. This commit only renames it.

Also, a brief description of delete! method is now
provided for guides so that users can acknowledge the difference.

Resolves #42862


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK