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.

Source | Google | Stack overflow

Edit

git clone [email protected]:solidusio/solidus.git

cd solidus

open core/app/helpers/spree/core/controller_helpers/auth.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Spree--Core--ControllerHelpers--Auth-unauthorized_redirect--for-pr


# Commit to git

git add core/app/helpers/spree/core/controller_helpers/auth.rbgit commit -m "better docs for Spree::Core::ControllerHelpers::Auth.unauthorized_redirect="


# Open pull request

gem 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!