alchemy_cms

https://github.com/magiclabs/alchemy_cms

Ruby

AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻‍♂️

Alchemy::Admin::PagesController#visit_nodes

Returns the current left index and the aggregated hash of tree nodes indexed by page id visited so far

Visits a batch of children nodes, assigns them the correct ordering indexes and spuns recursively the same
procedure on their children, if any

Source | Google | Stack overflow

Edit

git clone [email protected]:magiclabs/alchemy_cms.git

cd alchemy_cms

open app/controllers/alchemy/admin/pages_controller.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Alchemy--Admin--PagesController-visit_nodes-for-pr


# Commit to git

git add app/controllers/alchemy/admin/pages_controller.rbgit commit -m "better docs for Alchemy::Admin::PagesController#visit_nodes"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Alchemy--Admin--PagesController-visit_nodes-for-pr

hub pull-request


# Celebrate!