alchemy_cms
https://github.com/magiclabs/alchemy_cms
Ruby
AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻♂️
Alchemy::Page#editable_by?
Checks the current page's list of editors, if defined. This allows us to pass in a user and see if any of their roles are enable them to make edits
Edit
git clone [email protected]:magiclabs/alchemy_cms.git
cd alchemy_cms
open app/models/alchemy/page.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Alchemy--Page-editable_by--for-pr
# Commit to gitgit add app/models/alchemy/page.rbgit commit -m "better docs for Alchemy::Page#editable_by?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Alchemy--Page-editable_by--for-pr
hub pull-request
# Celebrate!