alchemy_cms
https://github.com/magiclabs/alchemy_cms
Ruby
AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻♂️
Alchemy::LocaleRedirects#locale_prefix_not_allowed?
Is the requested locale allowed? If Alchemy is not in multi language mode or the requested locale is the default locale, then we want to redirect to a non prefixed url.
Edit
git clone [email protected]:magiclabs/alchemy_cms.git
cd alchemy_cms
open app/controllers/concerns/alchemy/locale_redirects.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Alchemy--LocaleRedirects-locale_prefix_not_allowed--for-pr
# Commit to gitgit add app/controllers/concerns/alchemy/locale_redirects.rbgit commit -m "better docs for Alchemy::LocaleRedirects#locale_prefix_not_allowed?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Alchemy--LocaleRedirects-locale_prefix_not_allowed--for-pr
hub pull-request
# Celebrate!