alchemy_cms
https://github.com/magiclabs/alchemy_cms
Ruby
AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻♂️
SystemNoteService#cross_reference_exists?
Check if a cross reference to a noteable from a mentioner already exists This method is used to prevent multiple notes being created for a mention when a issue is updated, for example. The method also calls notes_for_mentioner to check if the mentioner is a commit, and return matches only on commit hash instead of project + commit, to avoid repeated mentions from forks. noteable - Noteable object being referenced mentioner - Mentionable object Returns Boolean
Edit
git clone [email protected]:magiclabs/alchemy_cms.git
cd alchemy_cms
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-SystemNoteService-cross_reference_exists--for-pr
# Commit to gitgit add git commit -m "better docs for SystemNoteService#cross_reference_exists?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-SystemNoteService-cross_reference_exists--for-pr
hub pull-request
# Celebrate!