1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailbox/app/controllers/rails/conductor/base_controller.rb
2018-12-26 16:18:42 -05:00

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