aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailbox/app/controllers/rails/conductor/base_controller.rb
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-12-26 16:18:42 -0500
committerGeorge Claghorn <george@basecamp.com>2018-12-26 16:18:42 -0500
commit6c168aaffb37c62dee6c895a22e240e5552be669 (patch)
treeb081b79a1088d9bc2bad0ee9f85fd4d7e5cc3638 /actionmailbox/app/controllers/rails/conductor/base_controller.rb
parent11a8ba12723c919397c8ccc0b4cf2e9f50da99ed (diff)
downloadrails-6c168aaffb37c62dee6c895a22e240e5552be669.tar.gz
rails-6c168aaffb37c62dee6c895a22e240e5552be669.tar.bz2
rails-6c168aaffb37c62dee6c895a22e240e5552be669.zip
Nest Action Mailbox classes in the API docs
Diffstat (limited to 'actionmailbox/app/controllers/rails/conductor/base_controller.rb')
-rw-r--r--actionmailbox/app/controllers/rails/conductor/base_controller.rb18
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