Sha256: 422330f3fe687775b9c3034f830522f1213ce3cda0e70f67fccd922aeba89014
Contents?: true
Size: 359 Bytes
Versions: 12
Compression:
Stored size: 359 Bytes
Contents
# typed: false # frozen_string_literal: true module Hephaestus class StaffController < ApplicationController layout "staff" class << self def staff_request?(request) return true if Rails.env.development? false end end def index render404 unless StaffController.staff_request?(request) end end end
Version data entries
12 entries across 12 versions & 1 rubygems