Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
luiscobot committed Jan 25, 2024
1 parent b03e2bd commit 5b9732d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class ApplicationController < ActionController::Base
def require_user!
return if current_user
save_passwordless_redirect_location!(User) # <-- optional, see below
redirect_to root_path, error: "You are not worthy!"
redirect_to root_path, alert: "You are not worthy!"
end
end
```
Expand Down Expand Up @@ -237,7 +237,7 @@ class ApplicationController < ActionController::Base
def require_user!
return if current_user
save_passwordless_redirect_location!(User) # <-- this one!
redirect_to root_path, flash: {error: 'You are not worthy!'}
redirect_to root_path, alert: "You are not worthy!"
end
end
```
Expand Down

0 comments on commit 5b9732d

Please sign in to comment.