Sha256: 657a55157536a2ce2b4f6c422730f932173975be7df310920fd5a1b2addee68a

Contents?: true

Size: 267 Bytes

Versions: 5

Compression:

Stored size: 267 Bytes

Contents

# frozen_string_literal: true

module Masks
  # @visibility private
  class ErrorController < ApplicationController
    def render_unauthorized
      render plain: "", status: 401
    end

    def redirect
      redirect_to masked_session.mask.fail
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
masks-0.4.0 app/controllers/masks/error_controller.rb
masks-0.3.2 app/controllers/masks/error_controller.rb
masks-0.3.1 app/controllers/masks/error_controller.rb
masks-0.3.0 app/controllers/masks/error_controller.rb
masks-0.2.0 app/controllers/masks/error_controller.rb