Closed cpfergus1 closed 1 year ago
This issue has been automatically marked as stale because it has not had recent activity. It might be closed if no further activity occurs. Thank you for your contributions.
Closing, https://github.com/solidusio/solidus/pull/4533 has been reverted.
Description
Removes #redirect_back_or_default in favor of Rails #redirect_back and #redirect_back_or_to
Motivation and Context
Rails introduced redirect_back in rails 5+ and redirect_back_or_to in rails 7+. These methods should be utilized instead of the redirect method created by Soldius, which similarly replicates the functionality of the deprecated method. The method #redirect_back_or_default will be deprecated in Solidus PR #4533
How Has This Been Tested?
The current test suite covers the changes made in the PR
Types of changes
Bug fix (non-breaking change which fixes an issue)New feature (non-breaking change which adds functionality)Breaking change (fix or feature that would cause existing functionality to not work as expected)Checklist: