Can not overwrite current_ability. #895

Closed
al3xandrei opened this Issue Jul 9, 2013 · 2 comments

Projects

None yet

2 participants

@al3xandrei

Like the title says I can not overwrite the current_ability.

I want to do something like this https://github.com/ryanb/cancan/wiki/Accessing-request-data but I get the following error:
wrong number of arguments (1 for 2)

I added the method current ability on the application controller but its not getting called.
Also added a debug message in it and I don't see the message.

Any guidance?

@jaredbeck

I'd be glad to help you troubleshoot this question if you moved it to stackoverflow. Github issues are for bugs that can be proved with tests, or suggested features. Can you close this issue, please? Thanks.

@al3xandrei

It was my fault, I use it with active admin and didn't do some things right.

Thank you.

@al3xandrei al3xandrei closed this Jul 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment