### Steps to reproduce

Please describe accurately how to reproduce the issue and post all necessary code.

If you provide a Gist to reproduce the issue this will make the debug much easier.

Please copy the following Gist and edit it to reproduce your issue: https://gist.github.com/coorasse/3f00f536563249125a37e15a1652648c

### Expected behavior
Tell us what should happen

### Actual behavior
Tell us what happens instead

### System configuration
**Rails version**:

**Ruby version**:

**CanCanCan version**
