Sha256: 8fa8e57f7dba57395a69934062ff867d52fa2b620c96a2df58b85e1362021663

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

# frozen_string_literal: true

module Masks
  # @visibility private
  module Manage
    class BaseController < ApplicationController
      layout "masks/manage"

      class << self
        def section(name)
          before_action { @section = name }
        end
      end

      helper_method :current_actor, :section

      attr_accessor :section
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
masks-0.4.0 app/controllers/masks/manage/base_controller.rb