alchemy_cms
https://github.com/magiclabs/alchemy_cms
Ruby
AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻♂️
GroupDescendant.build_hierarchy
Merges all hierarchies of the given groups or projects into an array of
hashes. All ancestors need to be loaded into the given `descendants` to avoid
queries down the line.
> GroupDescendant.merge_hierarchy([project, child_group, child_group2, parent])
=> { parent => [{ child_group => project}, child_group2] }Edit
git clone [email protected]:magiclabs/alchemy_cms.git
cd alchemy_cms
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-GroupDescendant-build_hierarchy-for-pr
# Commit to gitgit add git commit -m "better docs for GroupDescendant.build_hierarchy"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-GroupDescendant-build_hierarchy-for-pr
hub pull-request
# Celebrate!