Module: Pundit::Plus

Defined in:
lib/pundit/plus.rb,
lib/pundit/plus/version.rb,
lib/pundit/plus/authorization.rb,
lib/pundit/plus/custom_exception.rb

Defined Under Namespace

Modules: Authorization, CustomException

Constant Summary collapse

VERSION =
"0.1.3"

Instance Method Summary collapse

Instance Method Details

#exception_from(query:) ⇒ Object

The default exception to raise when authorization fails.



10
11
12
# File 'lib/pundit/plus.rb', line 10

def exception_from(query:)
  Pundit::NotAuthorizedError
end