"Middleware#remove" is renamed "Middleware#delete!" by sato1...
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.
Summary
This commit intends to clarify the difference betweenMiddleware#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
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK