module PunditExtra::ResourceAutoload::ClassMethods

Public Instance Methods

authorize_resource(options={}) click to toggle source
# File lib/pundit_extra/resource_autoload.rb, line 12
def authorize_resource(options={})
  before_action :authorize_resource, options.dup
end
load_and_authorize_resource(options={}) click to toggle source
# File lib/pundit_extra/resource_autoload.rb, line 20
def load_and_authorize_resource(options={})
  # :nocov:
  load_resource options
  authorize_resource options
  # :nocov:
end
load_resource(options={}) click to toggle source
# File lib/pundit_extra/resource_autoload.rb, line 8
def load_resource(options={})
  before_action :load_resource, options.dup
end
skip_authorization(options={}) click to toggle source
# File lib/pundit_extra/resource_autoload.rb, line 16
def skip_authorization(options={})
  before_action :skip_authorization_and_scope, options.dup
end