I had to do just that. Try
class MyCell < Cell::Rails include CanCan::ControllerAdditions end
If you are also using Devise, I should have done this:
class MyCell < Cell::Rails include CanCan::ControllerAdditions include Devise::Controllers::Helpers Devise::Controllers::Helpers.define_helpers(Devise::Mapping.new(:user, {})) end
#define_helpers will add helper methods like current_user and user_signed_in? to the cell.
qnm
source share