I'm using cancan
and cells
gems in my ruby-on-rails project.
How to access can?
method from within cell?
Thanks.
How to access 'can?' method from within cell?
1.2k Views Asked by Максим Дмитриев At
2
I'm using cancan
and cells
gems in my ruby-on-rails project.
How to access can?
method from within cell?
Thanks.
I've had to do exactly this. Try
If you're also using Devise, I had to do this:
#define_helpers
will add helper methods such as current_user and user_signed_in? to the cell.