mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
14 lines
338 B
Ruby
14 lines
338 B
Ruby
# 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
|