solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::Core::ControllerHelpers::Auth.unauthorized_redirect
Extension point for overriding behaviour of access denied errors. Default behaviour is to redirect to "/unauthorized" with a flash message.
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/helpers/spree/core/controller_helpers/auth.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--Core--ControllerHelpers--Auth-unauthorized_redirect-for-pr
# Commit to gitgit add core/app/helpers/spree/core/controller_helpers/auth.rbgit commit -m "better docs for Spree::Core::ControllerHelpers::Auth.unauthorized_redirect"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--Core--ControllerHelpers--Auth-unauthorized_redirect-for-pr
hub pull-request
# Celebrate!