diff options
Diffstat (limited to 'actionmailbox/app/controllers/rails/conductor/base_controller.rb')
-rw-r--r-- | actionmailbox/app/controllers/rails/conductor/base_controller.rb | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/actionmailbox/app/controllers/rails/conductor/base_controller.rb b/actionmailbox/app/controllers/rails/conductor/base_controller.rb index c95a7f3b93..93c4e2a66e 100644 --- a/actionmailbox/app/controllers/rails/conductor/base_controller.rb +++ b/actionmailbox/app/controllers/rails/conductor/base_controller.rb @@ -1,12 +1,14 @@ # 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 +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 + private + def ensure_development_env + head :forbidden unless Rails.env.development? + end + end end |