Skip to content

Commit 4cde578

Browse files
committed
Restore original header for browser version guards
1 parent 0a9d844 commit 4cde578

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

guides/source/7_2_release_notes.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ rails devcontainer
5555

5656
For more information, see the [Getting Started with Dev Containers](https://edgeguides.rubyonrails.org/getting_started_with_devcontainer.html) guide.
5757

58-
### Browser version guards
58+
### Add browser version guard by default
5959

6060
Rails now adds the ability to specify the browser versions that will be allowed to access all actions
6161
(or some, as limited by `only:` or `except:`).
@@ -87,6 +87,8 @@ class MessagesController < ApplicationController
8787
end
8888
```
8989

90+
Newly generated applications have this guard set in `ApplicationController`.
91+
9092
For more information, see the [allow_browser](https://api.rubyonrails.org/classes/ActionController/AllowBrowser/ClassMethods.html#method-i-allow_browser)
9193
documentation.
9294

0 commit comments

Comments
 (0)