Skip to content

Commit f6507e7

Browse files
committed
[ci skip]Fix the incorrect version where allow_browser was added in the guide
`allow_browser` was added in Rails 7.2 and is set by default in `ApplicationController` when running `rails new`. ref: rails@e3da4fc#diff-f355d10a96623990e497d37948436731adb5dc46d9f447d00f1a2590811ac606R4
1 parent 348f9b1 commit f6507e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/action_controller_advanced_topics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ in the [Security Guide](security.html#cross-site-request-forgery-csrf).
101101
Controlling Allowed Browser Versions
102102
------------------------------------
103103

104-
Starting with version 8.0, Rails controllers use [`allow_browser`](https://api.rubyonrails.org/classes/ActionController/AllowBrowser/ClassMethods.html#method-i-allow_browser) method in `ApplicationController` to allow only modern browsers by default.
104+
Starting with version 7.2, Rails controllers use [`allow_browser`](https://api.rubyonrails.org/classes/ActionController/AllowBrowser/ClassMethods.html#method-i-allow_browser) method in `ApplicationController` to allow only modern browsers by default.
105105

106106
```ruby
107107
class ApplicationController < ActionController::Base

0 commit comments

Comments
 (0)