actionmailbox/app/controllers/rails/conductor/base_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Rails
  # TODO: Move this to Rails::Conductor gem
  class Conductor::BaseController < ActionController::Base
    layout "rails/conductor"
    before_action :ensure_development_env

    private
      def ensure_development_env
        head :forbidden unless Rails.env.development?
      end
  end
end