Skip to content

Commit f457544

Browse files
Use the skip forgery protection helper in Active Storage guide
The helper method is essentially a wrapper around skipping the callback, and it simplifies the doc example. [ci skip]
1 parent d5ff2bf commit f457544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/active_storage_overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ the Rails application, similar to the following:
12931293

12941294
```ruby
12951295
class DirectUploadsController < ActiveStorage::DirectUploadsController
1296-
skip_before_action :verify_authenticity_token
1296+
skip_forgery_protection
12971297
before_action :authenticate!
12981298

12991299
def authenticate!

0 commit comments

Comments
 (0)