gmrash gmrash - 7 months ago 26
Ruby Question

Cancancan: set authorization for all controllers

Can I set autorization for all application without putting load_and_authorize_resource in each controller?

Answer

Yes you can. See this link

class ApplicationController < ActionController::Base
  check_authorization
end