lib/pundit/controller_additions.rb
def skip_authorization_check(*args)
        before_filter(*args) do |controller|
          controller.instance_variable_set(:@_authorized, true)
        end
      end
# Call this in the class of a controller to skip the check_authorization behavior on the actions.
#
#   class HomeController < ApplicationController
#     skip_authorization_check :only => :index
#   end
#
# Any arguments are passed to the +before_filter+ it triggers.
Call this in the class of a controller to skip the check_authorization behavior on the actions.

Any arguments are passed to the +before_filter+ it triggers.
Call this in the class of a controller to skip the check_authorization behavior on the actions . Any arguments are passed to the + before_filter + it triggers .
def skip_authorization_check(*args)
        before_filter(*args) do |controller|
          controller.instance_variable_set(:@_authorized, true)
        end
      end
def skip_authorization_check ( * args ) before_filter ( * args ) do | controller | controller . instance_variable_set ( :@_authorized , true ) end end
Call this in the class of a controller to skip the check_authorization behavior on the actions.
Call this in the class of a controller to skip the check_authorization behavior on the actions .
args