class Subroutine::Auth::NotAuthorizedError
Public Class Methods
new(msg = nil)
click to toggle source
Calls superclass method
# File lib/subroutine/auth/not_authorized_error.rb, line 7 def initialize(msg = nil) msg = I18n.t("errors.#{msg}", default: "Sorry, you are not authorized to perform this action.") if msg.is_a?(Symbol) msg ||= I18n.t("errors.unauthorized", default: "Sorry, you are not authorized to perform this action.") super msg end
Public Instance Methods
status()
click to toggle source
# File lib/subroutine/auth/not_authorized_error.rb, line 13 def status 401 end