Skip to content

Commit

Permalink
Fixed redirect example - fixes #496
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Feb 20, 2025
1 parent a7172ae commit c160be7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ You can define this method in your `ApplicationController`.
```ruby
def require_admin
# depending on your auth, something like...
redirect_to root_path unless current_user && current_user.admin?
redirect_to main_app.root_path unless current_user && current_user.admin?
end
```

Expand Down

0 comments on commit c160be7

Please # to comment.