class ActionControl::NotAuthorizedError
Error if user unauthorized.
@raise [NotAuthorizedError]
if authorized? isn't returning true.
@note
Should always be called at the end of the #authorize! method.
Attributes
error[R]
Public Class Methods
new(error={})
click to toggle source
# File lib/action_control/errors.rb, line 30 def initialize(error={}) @error = error end