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

Version Path
hephaestus-0.7.7.2 app/controllers/hephaestus/staff_controller.rb
hephaestus-0.7.7 app/controllers/hephaestus/staff_controller.rb
hephaestus-0.7.6.2 app/controllers/hephaestus/staff_controller.rb
hephaestus-0.7.6.1 app/controllers/hephaestus/staff_controller.rb
hephaestus-0.7.6 app/controllers/hephaestus/staff_controller.rb
hephaestus-0.7.5.3 app/controllers/hephaestus/staff_controller.rb
hephaestus-0.7.5.2 app/controllers/hephaestus/staff_controller.rb
hephaestus-0.7.5.1 app/controllers/hephaestus/staff_controller.rb
hephaestus-0.7.5 app/controllers/hephaestus/staff_controller.rb
hephaestus-0.7.4.2 app/controllers/hephaestus/staff_controller.rb
hephaestus-0.7.4.1 app/controllers/hephaestus/staff_controller.rb
hephaestus-0.7.4 app/controllers/hephaestus/staff_controller.rb