diff options
Diffstat (limited to 'actionmailbox/app/controllers/rails/conductor/base_controller.rb')
-rw-r--r-- | actionmailbox/app/controllers/rails/conductor/base_controller.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/actionmailbox/app/controllers/rails/conductor/base_controller.rb b/actionmailbox/app/controllers/rails/conductor/base_controller.rb new file mode 100644 index 0000000000..c95a7f3b93 --- /dev/null +++ b/actionmailbox/app/controllers/rails/conductor/base_controller.rb @@ -0,0 +1,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 |