alchemy_cms

https://github.com/magiclabs/alchemy_cms

Ruby

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

Alchemy::Page::PageNaming#ancestor_slugs

Slugs of all visible/non-language_root ancestors.
Returns [], if there is no parent, the parent is
the root page itself, or url_nesting is off.

Source | Google | Stack overflow

Edit

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

cd alchemy_cms

open app/models/alchemy/page/page_naming.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Alchemy--Page--PageNaming-ancestor_slugs-for-pr


# Commit to git

git add app/models/alchemy/page/page_naming.rbgit commit -m "better docs for Alchemy::Page::PageNaming#ancestor_slugs"


# 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--Page--PageNaming-ancestor_slugs-for-pr

hub pull-request


# Celebrate!