The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
| class Ability | |
| include CanCan::Ability | |
| def initialize(user) | |
| user ||= User.new # This is used for not logged user if you have a need for it | |
| case user.current_role | |
| when 'admin' | |
| can :manage, :all | |
| #!/usr/bin/env bash | |
| # Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/ | |
| ### | |
| # Label definitions | |
| ### | |
| declare -A LABELS | |
| # Platform |