alchemy_cms

https://github.com/magiclabs/alchemy_cms

Ruby

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

Alchemy::AbilityHelper#current_ability

Ensures usage of Alchemy's permissions class.

== Register custom Abilities

If your app has a CanCan Ability class with rules you want to be aviable in an Alchemy context
you need to register it. Or if you have an engine with it's own CanCan abilities you want to
add to Alchemy you must register them first.

    Alchemy.register_ability MyCustom::Permisson

Source | Google | Stack overflow

Edit

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

cd alchemy_cms

open app/controllers/concerns/alchemy/ability_helper.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Alchemy--AbilityHelper-current_ability-for-pr


# Commit to git

git add app/controllers/concerns/alchemy/ability_helper.rbgit commit -m "better docs for Alchemy::AbilityHelper#current_ability"


# 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--AbilityHelper-current_ability-for-pr

hub pull-request


# Celebrate!