I'm using CanCanCan v.1.11.0, and I have the follow situation:
coop_controller.rb
class CoopController < ApplicationController
authorize_resource class: false
end
ability.rb
if user.has_coop?
can :show, :coop
end
But when I'm with a user that has a coop, it's raising CanCan::AccessDenied, I believe that is because my controller's name is on singular. Is that a bug? Or I always need to use on plural?
--
Marina F. Lessa Neto LimeiraDiscente de Ciência da Computação - UFAL
Linux User #587272