aboutsummaryrefslogblamecommitdiffstats
path: root/app/controllers/rails/conductor/base_controller.rb
blob: c95a7f3b9394c67a045f66a02cb33a7dd99af503 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                             









                                                               
# frozen_string_literal: true

# TODO: Move this to Rails::Conductor gem
class Rails::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