alchemy_cms
https://github.com/magiclabs/alchemy_cms
Ruby
AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻♂️
User#update_emails_with_primary_email
Note: the use of the Emails services will cause `saves` on the user object, running through the callbacks again and can have side effects, such as the `previous_changes` hash and `_was` variables getting munged. By using an `after_commit` instead of `after_update`, we avoid the recursive callback scenario, though it then requires us to use the `previous_changes` hash
Edit
git clone [email protected]:magiclabs/alchemy_cms.git
cd alchemy_cms
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-User-update_emails_with_primary_email-for-pr
# Commit to gitgit add git commit -m "better docs for User#update_emails_with_primary_email"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-User-update_emails_with_primary_email-for-pr
hub pull-request
# Celebrate!