Sha256: 53d83ac8109e831244c945f22c828d7a69194c88d3820c4981f45d37441d4039

Contents?: true

Size: 357 Bytes

Versions: 5

Compression:

Stored size: 357 Bytes

Contents

# frozen_string_literal: true

module Masks
  # @visibility private
  class ActorsController < ApplicationController
    require_mask type: %i[session api], only: :current

    def current
      respond_to do |format|
        format.json { render json: ActorResource.new(current_actor) }
        format.html { render(:current) }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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