Skip to content

Commit b117d41

Browse files
rephrase the sentence for better readability
1 parent f8c9f45 commit b117d41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,9 +583,9 @@ def pundit_user
583583
end
584584
```
585585

586-
For instance, Rails 8 comes with its built in [authentication generator](https://github.com/rails/rails/tree/8-0-stable/railties/lib/rails/generators/rails/authentication). If you opt to use that means of authentication, currently logged in user is now accessed with `Current.user` instead of `current_user`.
586+
For instance, Rails 8 includes a built-in [authentication generator](https://github.com/rails/rails/tree/8-0-stable/railties/lib/rails/generators/rails/authentication). If you choose to use it, the currently logged-in user is accessed via `Current.user` instead of `current_user`.
587587

588-
Therefore, you should define a method named `pundit_user` like below in your `application_controller.rb` or somewhere suitable.
588+
To ensure compatibility with Pundit, define a `pundit_user` method in `application_controller.rb` (or another suitable location) as follows:
589589

590590
```ruby
591591
def pundit_user

0 commit comments

Comments
 (0)