Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
fallback_url > fallback_location
  • Loading branch information
fdocr authored May 17, 2023
1 parent 1f5f6be commit c0971c0
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 @@ -541,7 +541,7 @@ class ApplicationController < ActionController::Base
policy_name = exception.policy.class.to_s.underscore

flash[:error] = t "#{policy_name}.#{exception.query}", scope: "pundit", default: :default
redirect_back(fallback_url: root_path)
redirect_back(fallback_location: root_path)
end
end
```
Expand Down

0 comments on commit c0971c0

Please sign in to comment.